From 2a86a96d1fc988ae928eb39c570e089161cc6f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C4=85d?= Date: Tue, 25 Jun 2024 12:21:46 +0200 Subject: [PATCH] Make 13th migration revertable (#755) --- schemas/database/013_batches_and_transactions.down.sql | 2 ++ ...and_transactions.sql => 013_batches_and_transactions.up.sql} | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 schemas/database/013_batches_and_transactions.down.sql rename schemas/database/{013_batches_and_transactions.sql => 013_batches_and_transactions.up.sql} (99%) diff --git a/schemas/database/013_batches_and_transactions.down.sql b/schemas/database/013_batches_and_transactions.down.sql new file mode 100644 index 00000000..c90d8c4a --- /dev/null +++ b/schemas/database/013_batches_and_transactions.down.sql @@ -0,0 +1,2 @@ +DROP TABLE transactions; +DROP TABLE batches; diff --git a/schemas/database/013_batches_and_transactions.sql b/schemas/database/013_batches_and_transactions.up.sql similarity index 99% rename from schemas/database/013_batches_and_transactions.sql rename to schemas/database/013_batches_and_transactions.up.sql index f57ca4ca..2756627b 100644 --- a/schemas/database/013_batches_and_transactions.sql +++ b/schemas/database/013_batches_and_transactions.up.sql @@ -21,4 +21,4 @@ CREATE TABLE transactions created_at TIMESTAMPTZ NOT NULL, FOREIGN KEY (batch_next_root) REFERENCES batches (next_root) ON DELETE CASCADE -); \ No newline at end of file +);