From fd4ccbd83565153151672cbdb944359ca0b9f7b5 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Tue, 25 Apr 2023 07:16:50 +0900
Subject: Add NOT NULL constraint to column `type`.

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

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

diff --git a/revert/kakeibo.transactions.sql b/revert/kakeibo.transactions.sql
index c8bc09d..637d568 100644
--- a/revert/kakeibo.transactions.sql
+++ b/revert/kakeibo.transactions.sql
@@ -5,6 +5,6 @@
 BEGIN;
 
 ALTER TABLE kakeibo.transactions
-  RENAME COLUMN type TO type_code;
+  ALTER COLUMN type DROP NOT NULL;
 
 COMMIT;
-- 
cgit v1.2.3

