summaryrefslogtreecommitdiff
path: root/util/sql/all.sql
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-30 16:02:16 +0100
committerYorhel <git@yorhel.nl>2019-12-30 16:19:12 +0100
commit214646f73973a84ae4a91e8b7a3be440546edccf (patch)
tree7726bf2f8b9ee292d98455be50fba71168bd75e5 /util/sql/all.sql
parent8143e41a59efb8d7220da458e0a94b5b839179b2 (diff)
Minor refactor: Move all trigger functions and declarations to separate file
This keeps the function body and the trigger declaration closer to each other, so it's easier to tell when the function will be called and which cases it needs to handle. If you ignore errors from existing trigger declarations, the triggers.sql script is idempotent and can be used in from scripts.
Diffstat (limited to 'util/sql/all.sql')
-rw-r--r--util/sql/all.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sql/all.sql b/util/sql/all.sql
index 8bf3ae63..1e01dd3f 100644
--- a/util/sql/all.sql
+++ b/util/sql/all.sql
@@ -6,5 +6,6 @@
\i util/sql/func.sql
\i util/sql/editfunc.sql
\i util/sql/tableattrs.sql
+\i util/sql/triggers.sql
\set ON_ERROR_STOP 0
\i util/sql/perms.sql