diff options
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/article_tags_update_updated_at.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/article_tags_update_updated_at.sql b/deploy/article_tags_update_updated_at.sql new file mode 100644 index 0000000..20d3bc7 --- /dev/null +++ b/deploy/article_tags_update_updated_at.sql @@ -0,0 +1,15 @@ +-- Deploy diary:article_tags_update_updated_at to pg +-- requires: schema +-- requires: article_tags +-- requires: update_updated_at + +BEGIN; + +SET search_path to diary; + +CREATE OR REPLACE TRIGGER update_updated_at + BEFORE UPDATE ON article_tags + FOR EACH ROW + EXECUTE FUNCTION update_updated_at(); + +COMMIT; |