mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
017 claimed to be idempotent but only dropped the *legacy* policy names before recreating; the new policies (contacts_select, …) were created unguarded. A second run therefore failed with `42710: policy "contacts_select" for table "contacts" already exists`. Drop every policy on the tables 017 manages (it owns all RLS on them — no later migration adds others) in a DO block before the CREATEs, so the rewrite re-establishes the full set on every run. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||