panels-origin/db/iam
Cursor Agent a9fbca232d
Fix IAM v2 migrate: split DO block and harden role backfill
The migrate job failed at changeset 005h during Coolify deploy. Liquibase
was splitting the DO $$ block on inner semicolons (splitStatements:true),
which breaks PL/pgSQL. Move the unique-index DO block to 005h2 with
splitStatements:false.

Add 005g2 to create missing operativo roles per tenant, backfill any
remaining role_id values, demote duplicate tenant_admin users to operativo,
and remove orphan users without tenant_id before SET NOT NULL.

Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>
2026-09-08 18:57:19 +00:00
..
changesets Fix IAM v2 migrate: split DO block and harden role backfill 2026-09-08 18:57:19 +00:00
changelog-master.xml Add IAM v2 roles/permissions migration and project doc types 2026-09-08 18:10:45 +00:00
liquibase.properties db: migrar infraestructura de BD a Postgres (fase 0-1) 2026-09-02 20:00:49 +00:00