From 69ac90518f003895b8ffb6618b84b91ff4256308 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sat, 4 Mar 2023 20:21:24 +0900 Subject: Drop transaction_type. --- deploy/transaction_type.sql | 5 +---- deploy/transaction_type@v1.0.0-dev1.sql | 11 +++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 deploy/transaction_type@v1.0.0-dev1.sql (limited to 'deploy') diff --git a/deploy/transaction_type.sql b/deploy/transaction_type.sql index b29421f..a101f75 100644 --- a/deploy/transaction_type.sql +++ b/deploy/transaction_type.sql @@ -3,9 +3,6 @@ BEGIN; -CREATE TYPE kakeibo.transaction_type AS ENUM( - 'income', - 'outgo' -); +DROP TYPE kakeibo.transaction_type; COMMIT; diff --git a/deploy/transaction_type@v1.0.0-dev1.sql b/deploy/transaction_type@v1.0.0-dev1.sql new file mode 100644 index 0000000..b29421f --- /dev/null +++ b/deploy/transaction_type@v1.0.0-dev1.sql @@ -0,0 +1,11 @@ +-- Deploy kakeibo:transaction_type to pg +-- requires: appschema + +BEGIN; + +CREATE TYPE kakeibo.transaction_type AS ENUM( + 'income', + 'outgo' +); + +COMMIT; -- cgit v1.2.3