From 59e39e0088fc71225a0d5b4b1ca7df6ec9ec4659 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Tue, 12 Mar 2024 02:52:57 +0900 Subject: Rename article_tags to tags. --- verify/article_tags.sql | 11 ----------- verify/article_tags_update_updated_at.sql | 14 -------------- verify/tags.sql | 11 +++++++++++ verify/tags_update_updated_at.sql | 14 ++++++++++++++ 4 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 verify/article_tags.sql delete mode 100644 verify/article_tags_update_updated_at.sql create mode 100644 verify/tags.sql create mode 100644 verify/tags_update_updated_at.sql (limited to 'verify') diff --git a/verify/article_tags.sql b/verify/article_tags.sql deleted file mode 100644 index 46119c3..0000000 --- a/verify/article_tags.sql +++ /dev/null @@ -1,11 +0,0 @@ --- Verify diary:article_tags on pg - -BEGIN; - -SET search_path to diary; - -SELECT id, name, created_at, updated_at - FROM article_tags - WHERE FALSE; - -ROLLBACK; diff --git a/verify/article_tags_update_updated_at.sql b/verify/article_tags_update_updated_at.sql deleted file mode 100644 index 7ee95db..0000000 --- a/verify/article_tags_update_updated_at.sql +++ /dev/null @@ -1,14 +0,0 @@ --- 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; diff --git a/verify/tags.sql b/verify/tags.sql new file mode 100644 index 0000000..5d6b174 --- /dev/null +++ b/verify/tags.sql @@ -0,0 +1,11 @@ +-- Verify diary:tags on pg + +BEGIN; + +SET search_path to diary; + +SELECT id, name, created_at, updated_at + FROM tags + WHERE FALSE; + +ROLLBACK; diff --git a/verify/tags_update_updated_at.sql b/verify/tags_update_updated_at.sql new file mode 100644 index 0000000..e6940ce --- /dev/null +++ b/verify/tags_update_updated_at.sql @@ -0,0 +1,14 @@ +-- Verify diary:tags_update_updated_at on pg + +BEGIN; + +DO $$ + BEGIN + ASSERT (SELECT 1 from information_schema.triggers + WHERE trigger_schema = 'diary' + AND event_object_table = 'tags' + AND trigger_name = 'update_updated_at'); + END +$$; + +ROLLBACK; -- cgit v1.2.3