← 返回事件
持续讨论科技发版8.0.0-rc.12

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

图:Prisma Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源