aboutsummaryrefslogtreecommitdiff
path: root/deploy/kakeibo.items.sql
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/kakeibo.items.sql')
-rw-r--r--deploy/kakeibo.items.sql13
1 files changed, 13 insertions, 0 deletions
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;