diff options
Diffstat (limited to 'src/exchangedb/drop.sql')
-rw-r--r-- | src/exchangedb/drop.sql | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/exchangedb/drop.sql b/src/exchangedb/drop.sql index ff383d743..fa7609bfd 100644 --- a/src/exchangedb/drop.sql +++ b/src/exchangedb/drop.sql @@ -17,10 +17,18 @@ -- Everything in one big transaction BEGIN; - +-- TODO: consider use exchange-* in the future! SELECT _v.unregister_patch('exchange-0001'); SELECT _v.unregister_patch('exchange-0002'); +WITH xpatches AS ( + SELECT patch_name + FROM _v.patches + WHERE patch_name='auditor-triggers-0001' -- TODO: use auditor-triggers-* in the future! +) + SELECT _v.unregister_patch(xpatches.patch_name) + FROM xpatches; + DROP SCHEMA exchange CASCADE; COMMIT; |