Skip to content

Commit

Permalink
disable triggers for changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 22, 2023
1 parent 7cb28c8 commit 9416367
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion data_model/changelogs/0007/0007_anchor-point.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
CREATE TYPE signalo_db.anchor AS ENUM ('LEFT', 'CENTER', 'RIGHT');
ALTER TABLE signalo_db.sign DISABLE TRIGGER tr_sign_on_delete_reorder;
ALTER TABLE signalo_db.sign DISABLE TRIGGER tr_sign_on_update_prevent_fk_frame;

REATE TYPE signalo_db.anchor AS ENUM ('LEFT', 'CENTER', 'RIGHT');
CREATE TYPE signalo_db.sign_hanging AS ENUM ('RECTO', 'RECTO-VERSO', 'VERSO');

ALTER TABLE signalo_db.support ADD COLUMN group_by_anchor BOOLEAN NOT NULL DEFAULT TRUE;
Expand Down Expand Up @@ -65,3 +68,6 @@ UPDATE signalo_db.sign SET fk_official_sign = replace(fk_official_sign, '-l', ''
UPDATE signalo_db.sign SET fk_official_sign = replace(fk_official_sign, '-r', '') WHERE fk_official_sign LIKE '%-r';

ALTER TABLE signalo_db.sign ADD CONSTRAINT fkey_vl_official_sign FOREIGN KEY (fk_official_sign) REFERENCES signalo_db.vl_official_sign (id);

ALTER TABLE signalo_db.sign ENABLE TRIGGER tr_sign_on_delete_reorder;
ALTER TABLE signalo_db.sign ENABLE TRIGGER tr_sign_on_update_prevent_fk_frame;

0 comments on commit 9416367

Please sign in to comment.