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@v1.0.0-alpha.5.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 deploy/kakeibo.transactions@v1.0.0-alpha.5.sql

(limited to 'deploy/kakeibo.transactions@v1.0.0-alpha.5.sql')

diff --git a/deploy/kakeibo.transactions@v1.0.0-alpha.5.sql b/deploy/kakeibo.transactions@v1.0.0-alpha.5.sql
new file mode 100644
index 0000000..a30be1e
--- /dev/null
+++ b/deploy/kakeibo.transactions@v1.0.0-alpha.5.sql
@@ -0,0 +1,10 @@
+-- Deploy kakeibo:transactions to pg
+-- requires: schema
+-- requires: articles
+
+BEGIN;
+
+ALTER TABLE kakeibo.transactions
+  RENAME COLUMN type_code TO type;
+
+COMMIT;
-- 
cgit v1.2.3

