From 7da8e4758e637014c57581a19c3399278c2d146b Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Wed, 29 Mar 2023 00:44:54 +0900
Subject: Remove trnasaction_types from history.

---
 deploy/kakeibo.transactions.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/deploy/kakeibo.transactions.sql b/deploy/kakeibo.transactions.sql
index 3a4585a..0572a23 100644
--- a/deploy/kakeibo.transactions.sql
+++ b/deploy/kakeibo.transactions.sql
@@ -5,8 +5,8 @@
 BEGIN;
 
 ALTER TABLE kakeibo.transactions
-  ADD CONSTRAINT transactions_type_code_fkey
-  FOREIGN KEY (type_code)
-  REFERENCES kakeibo.transaction_types (code);
+  ADD COLUMN article_id INTEGER,
+  ADD CONSTRAINT transactions_article_id_fkey
+  FOREIGN KEY (article_id) REFERENCES kakeibo.articles (id);
 
 COMMIT;
-- 
cgit v1.2.3

