Files
goclaw/migrations/000086_fix_channel_contacts_merged_fk.down.sql
2026-06-27 21:24:52 +07:00

9 lines
229 B
PL/PgSQL

-- Roll back only the corrective FK.
-- Do not recreate the old self-reference FK because it is incompatible with valid data.
BEGIN;
ALTER TABLE channel_contacts
DROP CONSTRAINT IF EXISTS fk_channel_contacts_merged_id;
COMMIT;