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`.

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

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

diff --git a/deploy/kakeibo.transactions.sql b/deploy/kakeibo.transactions.sql
index a30be1e..397466f 100644
--- a/deploy/kakeibo.transactions.sql
+++ b/deploy/kakeibo.transactions.sql
@@ -5,6 +5,6 @@
 BEGIN;
 
 ALTER TABLE kakeibo.transactions
-  RENAME COLUMN type_code TO type;
+  ALTER COLUMN type SET NOT NULL;
 
 COMMIT;
-- 
cgit v1.2.3

