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. --- deploy/tags.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 deploy/tags.sql (limited to 'deploy/tags.sql') diff --git a/deploy/tags.sql b/deploy/tags.sql new file mode 100644 index 0000000..8186248 --- /dev/null +++ b/deploy/tags.sql @@ -0,0 +1,15 @@ +-- Deploy diary:tags to pg +-- requires: schema + +BEGIN; + +SET search_path to diary; + +CREATE TABLE tags( + id UUID PRIMARY KEY, + name TEXT UNIQUE NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW() +); + +COMMIT; -- cgit v1.2.3