aboutsummaryrefslogtreecommitdiff
path: root/verify
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-03-12 02:52:57 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-03-12 02:52:57 +0900
commit59e39e0088fc71225a0d5b4b1ca7df6ec9ec4659 (patch)
tree900227533d65e277b408df911cc7df446edaff16 /verify
parent1fd13d3895ba1274c1754379b3003b1e4f9840ab (diff)
Rename article_tags to tags.
Diffstat (limited to 'verify')
-rw-r--r--verify/tags.sql (renamed from verify/article_tags.sql)4
-rw-r--r--verify/tags_update_updated_at.sql (renamed from verify/article_tags_update_updated_at.sql)4
2 files changed, 4 insertions, 4 deletions
diff --git a/verify/article_tags.sql b/verify/tags.sql
index 46119c3..5d6b174 100644
--- a/verify/article_tags.sql
+++ b/verify/tags.sql
@@ -1,11 +1,11 @@
--- Verify diary:article_tags on pg
+-- Verify diary:tags on pg
BEGIN;
SET search_path to diary;
SELECT id, name, created_at, updated_at
- FROM article_tags
+ FROM tags
WHERE FALSE;
ROLLBACK;
diff --git a/verify/article_tags_update_updated_at.sql b/verify/tags_update_updated_at.sql
index 7ee95db..e6940ce 100644
--- a/verify/article_tags_update_updated_at.sql
+++ b/verify/tags_update_updated_at.sql
@@ -1,4 +1,4 @@
--- Verify diary:article_tags_update_updated_at on pg
+-- Verify diary:tags_update_updated_at on pg
BEGIN;
@@ -6,7 +6,7 @@ DO $$
BEGIN
ASSERT (SELECT 1 from information_schema.triggers
WHERE trigger_schema = 'diary'
- AND event_object_table = 'article_tags'
+ AND event_object_table = 'tags'
AND trigger_name = 'update_updated_at');
END
$$;