summaryrefslogtreecommitdiff
path: root/src/exchangedb/drop0001.sql
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-31 12:49:51 +0100
committerChristian Grothoff <christian@grothoff.org>2021-10-31 12:49:51 +0100
commit43ee9da01dce57260f3c3c706655f2b830474be2 (patch)
tree042178d37d78495c3f05e72d6d79fd1961c05c10 /src/exchangedb/drop0001.sql
parentb5e9523f947231854a3363348f32bd7a6ed6069d (diff)
downloadexchange-43ee9da01dce57260f3c3c706655f2b830474be2.tar.gz
exchange-43ee9da01dce57260f3c3c706655f2b830474be2.tar.bz2
exchange-43ee9da01dce57260f3c3c706655f2b830474be2.zip
misc fixes
Diffstat (limited to 'src/exchangedb/drop0001.sql')
-rw-r--r--src/exchangedb/drop0001.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchangedb/drop0001.sql b/src/exchangedb/drop0001.sql
index 54338f02c..9c77d30cb 100644
--- a/src/exchangedb/drop0001.sql
+++ b/src/exchangedb/drop0001.sql
@@ -22,6 +22,9 @@ BEGIN;
-- Unlike the other SQL files, it SHOULD be updated to reflect the
-- latest requirements for dropping tables.
+-- Unregister patch (exchange-0001.sql)
+SELECT _v.unregister_patch('exchange-0001');
+
-- Drops for exchange-0001.sql
DROP TABLE IF EXISTS revolving_work_shards CASCADE;
DROP TABLE IF EXISTS auditors CASCADE;
@@ -51,8 +54,5 @@ DROP TABLE IF EXISTS denomination_revocations CASCADE;
DROP TABLE IF EXISTS denominations CASCADE;
--- Unregister patch (exchange-0001.sql)
-SELECT _v.unregister_patch('exchange-0001');
-
-- And we're out of here...
COMMIT;