aboutsummaryrefslogtreecommitdiff
path: root/revert
diff options
context:
space:
mode:
Diffstat (limited to 'revert')
-rw-r--r--revert/transaction_type.sql8
-rw-r--r--revert/transaction_type@v1.0.0-dev1.sql7
2 files changed, 13 insertions, 2 deletions
diff --git a/revert/transaction_type.sql b/revert/transaction_type.sql
index 00fd491..b29421f 100644
--- a/revert/transaction_type.sql
+++ b/revert/transaction_type.sql
@@ -1,7 +1,11 @@
--- Revert kakeibo:transaction_type from pg
+-- Deploy kakeibo:transaction_type to pg
+-- requires: appschema
BEGIN;
-DROP TYPE kakeibo.transaction_type;
+CREATE TYPE kakeibo.transaction_type AS ENUM(
+ 'income',
+ 'outgo'
+);
COMMIT;
diff --git a/revert/transaction_type@v1.0.0-dev1.sql b/revert/transaction_type@v1.0.0-dev1.sql
new file mode 100644
index 0000000..00fd491
--- /dev/null
+++ b/revert/transaction_type@v1.0.0-dev1.sql
@@ -0,0 +1,7 @@
+-- Revert kakeibo:transaction_type from pg
+
+BEGIN;
+
+DROP TYPE kakeibo.transaction_type;
+
+COMMIT;