← Back to events
ActiveTechRelease8.0.0-rc.12

v8.0.0-rc.12-dev.3: fix(postgres): drop RLS policies before the DDL they block (#30232)

Photo: Prisma Releases

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

Why it's spreading

Sources