From 1fd13d3895ba1274c1754379b3003b1e4f9840ab Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Mon, 11 Mar 2024 01:09:12 +0900 Subject: Add update_updated_at trigger to article_tags table. --- verify/article_tags_update_updated_at.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 verify/article_tags_update_updated_at.sql (limited to 'verify') diff --git a/verify/article_tags_update_updated_at.sql b/verify/article_tags_update_updated_at.sql new file mode 100644 index 0000000..7ee95db --- /dev/null +++ b/verify/article_tags_update_updated_at.sql @@ -0,0 +1,14 @@ +-- Verify diary:article_tags_update_updated_at on pg + +BEGIN; + +DO $$ + BEGIN + ASSERT (SELECT 1 from information_schema.triggers + WHERE trigger_schema = 'diary' + AND event_object_table = 'article_tags' + AND trigger_name = 'update_updated_at'); + END +$$; + +ROLLBACK; -- cgit v1.2.3