prorm API Reference
    Preparing search index...

    Function buildAddEnumValueSQL

    • Add a value to an existing enum type.

      The operation people actually need, and the one that used to require raw SQL: an enum in production gains a member, and recreating the type would mean dropping every column that uses it.

      await qi.addEnumValue('order_status', 'refunded', { after: 'shipped' });
      

      Parameters

      • name: string
      • value: string
      • dialect: string
      • quoteTable: (t: string) => string
      • options: { before?: string; after?: string; ifNotExists?: boolean } = {}

      Returns string