fix(db): retire all legacy cad_buildings indexes — hotfix2 (#168) #174

Merged
lekss361 merged 1 commit from fix/cadastre-schema-all-pkey-rename into main 2026-05-15 11:09:41 +00:00

1 commit

Author SHA1 Message Date
lekss361
ac18ef32f9 fix(db): retire ALL legacy cad_buildings index names before rename (#168 hotfix2)
PR #173 fixed cad_buildings_pkey but missed 5 other indexes. Same root cause:
PG does NOT auto-rename indexes on table rename → all 6 backing indexes
remain on cad_buildings_old_apr26 with original names.

Add 5 more `ALTER INDEX IF EXISTS ... RENAME TO ..._old_apr26_*` statements
for: geom_gist, quarter_idx, objdoc_idx, complex_idx, purpose_idx.

Migration 92 still NOT in _schema_migrations (4× rollback now). Next deploy
will re-apply cleanly.
2026-05-15 14:05:23 +03:00