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

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

diff --git a/revert/kakeibo.transactions@v1.0.0-alpha.5.sql b/revert/kakeibo.transactions@v1.0.0-alpha.5.sql
new file mode 100644
index 0000000..c8bc09d
--- /dev/null
+++ b/revert/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 TO type_code;
+
+COMMIT;
-- 
cgit v1.2.3

