Files
gochat/backend/migrations/000086_repair_assignment_policy_schema.down.sql
T
Rogeeandrogee 4eeb0f8957 HH-597: repair assignment policy migration parity (#156)
* fix(HH-597): repair assignment policy schema migration

* fix(HH-597): harden assignment policy migration

---------

Co-authored-by: Rogee <rogee@ipao.vip>
2026-08-24 13:09:13 +08:00

9 lines
329 B
SQL

-- v86 backfills legacy bindings and may receive new assignment-policy data.
-- Removing its table, columns, or indexes would destroy that data and could
-- also remove objects which predated this migration.
DO $$
BEGIN
RAISE EXCEPTION 'migration 000086 is irreversible: restore from backup instead of migrating down';
END
$$;