v8.0.0-rc.12-dev.3: fix(postgres): drop RLS policies before the DDL they block (#30232)
- Prisma: 125 events in the last 90 days
- Prisma: 125th Release in the last 90 days
- Previous: earlier the same day · v8.0.0-rc.12-dev.2
What happened
Linked issue Fixes #30226 Summary When one contract change removes both a column and an RLS policy referencing it, the planner emits dropColumn before dropPolicy , and Postgres rejects the migration with 2BP01. Policy drops are now spliced ahead of the first structural table/column drop, so the generated plan applies cleanly. Testing performed New regression test in test/migrations/rls-planner.test.ts (drops a publi…
Summary assembled by rule from the sources below