From 70304b1903cc5b1accd9caea229e59901384203a Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Tue, 28 Mar 2023 01:29:08 +0900
Subject: Add `kakeibo.` prefix.

---
 deploy/kakeibo.items.sql | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 deploy/kakeibo.items.sql

(limited to 'deploy/kakeibo.items.sql')

diff --git a/deploy/kakeibo.items.sql b/deploy/kakeibo.items.sql
new file mode 100644
index 0000000..d95fbf5
--- /dev/null
+++ b/deploy/kakeibo.items.sql
@@ -0,0 +1,13 @@
+-- Deploy kakeibo:items to pg
+-- requires: schema
+-- requires: transactions
+-- requires: articles
+
+BEGIN;
+
+ALTER TABLE kakeibo.items
+  ADD COLUMN article_id INTEGER,
+  ADD CONSTRAINT transactions_article_id_fkey
+  FOREIGN KEY (article_id) REFERENCES kakeibo.articles (id);
+
+COMMIT;
-- 
cgit v1.2.3

