Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable triggers for changelog #159

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions data_model/changelogs/0007/0007_anchor-point.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
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;

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

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;