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.sql | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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

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

