Skip to content

Commit 0c24322

Browse files
committed
enhancement: prophylactic drop trigger before create anew
1 parent 3b6c3d8 commit 0c24322

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

updates/36/36012/utils/trg.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ This version of Giswater is provided by Giswater Association
88
SET search_path = SCHEMA_NAME, public, pg_catalog;
99

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

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

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

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

0 commit comments

Comments
 (0)