Skip to content

Commit

Permalink
enhancement: prophylactic drop trigger before create anew
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbofill committed Aug 20, 2024
1 parent 3b6c3d8 commit 0c24322
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions updates/36/36012/utils/trg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ This version of Giswater is provided by Giswater Association
SET search_path = SCHEMA_NAME, public, pg_catalog;

--05/08/2024
DROP TRIGGER IF EXISTS gw_trg_ui_doc_x_visit ON v_ui_doc_x_visit;
CREATE trigger gw_trg_ui_doc_x_visit instead OF
INSERT OR DELETE OR UPDATE ON v_ui_doc_x_visit FOR each row EXECUTE function gw_trg_ui_doc('doc_x_visit');

DROP TRIGGER IF EXISTS gw_trg_ui_doc_x_arc ON v_ui_doc_x_arc;
CREATE trigger gw_trg_ui_doc_x_arc instead OF
INSERT OR DELETE OR UPDATE ON v_ui_doc_x_arc FOR each row EXECUTE function gw_trg_ui_doc('doc_x_arc');

DROP TRIGGER IF EXISTS gw_trg_ui_doc_x_connec ON v_ui_doc_x_connec;
CREATE trigger gw_trg_ui_doc_x_connec instead OF
INSERT OR DELETE OR UPDATE ON v_ui_doc_x_connec FOR each row EXECUTE function gw_trg_ui_doc('doc_x_connec');

DROP TRIGGER IF EXISTS gw_trg_ui_doc_x_node ON v_ui_doc_x_node;
CREATE trigger gw_trg_ui_doc_x_node instead OF
INSERT OR DELETE OR UPDATE ON v_ui_doc_x_node FOR each row EXECUTE function gw_trg_ui_doc('doc_x_node');

0 comments on commit 0c24322

Please sign in to comment.