From 248017b5b50f4e00c909abc234ed71b4dced9f37 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Mon, 13 Mar 2023 00:49:16 +0900
Subject: Add foreign key constraint to transactions table referencing types
 table.

---
 revert/transactions.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'revert/transactions.sql')

diff --git a/revert/transactions.sql b/revert/transactions.sql
index d30390a..c424cc1 100644
--- a/revert/transactions.sql
+++ b/revert/transactions.sql
@@ -3,6 +3,6 @@
 BEGIN;
 
 ALTER TABLE kakeibo.transactions
-  DROP COLUMN article_id;
+  DROP CONSTRAINT transactions_type_code_fkey;
 
 COMMIT;
-- 
cgit v1.2.3

