From af28c9b449b145fd365d416f8ba8cf6fdab6bfcf Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Tue, 19 May 2020 02:23:57 +0200
Subject: fix auditor drop

---
 src/auditordb/drop0001.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/auditordb/drop0001.sql')

diff --git a/src/auditordb/drop0001.sql b/src/auditordb/drop0001.sql
index 80f953e32..8e42c8094 100644
--- a/src/auditordb/drop0001.sql
+++ b/src/auditordb/drop0001.sql
@@ -43,8 +43,8 @@ DROP TABLE IF EXISTS auditor_denominations CASCADE;
 DROP TABLE IF EXISTS deposit_confirmations CASCADE;
 DROP TABLE IF EXISTS auditor_exchanges CASCADE;
 
--- Drop versioning (0000.sql)
-DROP SCHEMA IF EXISTS _v CASCADE;
+-- Drop versioning (auditor-0001.sql)
+SELECT _v.unregister_patch('auditor-0001');
 
 -- And we're out of here...
 COMMIT;
-- 
cgit v1.2.3

