From 437f1b8658f2682b5d2115bb2f2bb459120ba728 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 10 Dec 2020 23:59:33 +0100 Subject: [PATCH] cascade --- src/exchangedb/drop0002.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/exchangedb/drop0002.sql b/src/exchangedb/drop0002.sql index 482e11384..03870e637 100644 --- a/src/exchangedb/drop0002.sql +++ b/src/exchangedb/drop0002.sql @@ -22,11 +22,11 @@ BEGIN; -- Unregister patch (0002.sql) SELECT _v.unregister_patch('exchange-0002'); -DROP TABLE auditors; -DROP TABLE auditor_denom_sigs; -DROP TABLE exchange_sign_keys; -DROP TABLE wire_accounts; -DROP TABLE signkey_revocations; +DROP TABLE IF EXISTS auditors CASCADE; +DROP TABLE IF EXISTS auditor_denom_sigs CASCADE; +DROP TABLE IF EXISTS exchange_sign_keys CASCADE; +DROP TABLE IF EXISTS wire_accounts CASCADE; +DROP TABLE IF EXISTS signkey_revocations CASCADE; -- And we're out of here... COMMIT;