aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/drop-shard-part.sql
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-07-24 11:32:52 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-07-24 11:32:52 +0200
commit977ddd7bb97f9cec780407f27ccb2dbf8d1cf722 (patch)
treef2a192aedb47996805842c2dfed79e9fc3170e72 /src/exchangedb/drop-shard-part.sql
parent9eaee4c80353b4e1317c0df2418f24209c2b238d (diff)
-adapt to latest libgnunetpq
Diffstat (limited to 'src/exchangedb/drop-shard-part.sql')
-rw-r--r--src/exchangedb/drop-shard-part.sql27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/exchangedb/drop-shard-part.sql b/src/exchangedb/drop-shard-part.sql
new file mode 100644
index 00000000..9cf3eeb3
--- /dev/null
+++ b/src/exchangedb/drop-shard-part.sql
@@ -0,0 +1,27 @@
+--
+-- This file is part of TALER
+-- Copyright (C) 2014--2021 Taler Systems SA
+--
+-- TALER is free software; you can redistribute it and/or modify it under the
+-- terms of the GNU General Public License as published by the Free Software
+-- Foundation; either version 3, or (at your option) any later version.
+--
+-- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+-- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License along with
+-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+--
+
+BEGIN;
+
+-- Unregister patch (shard-0001.sql)
+SELECT _v.unregister_patch('shard-0001');
+
+-- Drops for shard-0001-part.sql
+
+DROP FUNCTION IF EXISTS drop_shard;
+DROP FUNCTION IF EXISTS setup_shard;
+
+COMMIT;