From 517689bf4c657ef8104a2626e22902fb798cee17 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Sun, 23 Apr 2023 18:47:32 +0900
Subject: Rename column from `type_code` to `type`.

---
 deploy/kakeibo.transactions@v1.0.0-alpha.4.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 deploy/kakeibo.transactions@v1.0.0-alpha.4.sql

(limited to 'deploy/kakeibo.transactions@v1.0.0-alpha.4.sql')

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

