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@v1.0.0-alpha.2.sql | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 revert/transactions@v1.0.0-alpha.2.sql

(limited to 'revert/transactions@v1.0.0-alpha.2.sql')

diff --git a/revert/transactions@v1.0.0-alpha.2.sql b/revert/transactions@v1.0.0-alpha.2.sql
new file mode 100644
index 0000000..d30390a
--- /dev/null
+++ b/revert/transactions@v1.0.0-alpha.2.sql
@@ -0,0 +1,8 @@
+-- Revert kakeibo:transactions from pg
+
+BEGIN;
+
+ALTER TABLE kakeibo.transactions
+  DROP COLUMN article_id;
+
+COMMIT;
-- 
cgit v1.2.3

