diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-17 01:55:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-17 01:55:01 +0100 |
commit | 8ea2af444feec46e9086bb6c410762b18c7252fe (patch) | |
tree | 44eea8e4c21956813c19a1b443b1082c51bd3cbe /src/exchangedb | |
parent | 5b11d19b678283d6fbc72dc9fb3d5f3cfabc1d92 (diff) |
more work towards DB versioning
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/0001.sql | 2 | ||||
-rw-r--r-- | src/exchangedb/Makefile.am | 2 | ||||
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/exchangedb/0001.sql b/src/exchangedb/0001.sql index 92e0d599c..45694fe0f 100644 --- a/src/exchangedb/0001.sql +++ b/src/exchangedb/0001.sql @@ -18,7 +18,7 @@ BEGIN; -- Check patch versioning is in place. -SELECT _v.register_patch('0001', NULL, NULL); +SELECT _v.register_patch('exchange-0001', NULL, NULL); -- Main denominations table. All the coins the exchange knows about. diff --git a/src/exchangedb/Makefile.am b/src/exchangedb/Makefile.am index d16cc8b31..52e1bdad8 100644 --- a/src/exchangedb/Makefile.am +++ b/src/exchangedb/Makefile.am @@ -23,7 +23,7 @@ EXTRA_DIST = \ exchangedb-postgres.conf \ plugin_exchangedb_common.c \ test-exchange-db-postgres.conf - + $(sql_DATA) plugindir = $(libdir)/taler diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index b9c9d6742..73db049eb 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -166,6 +166,7 @@ postgres_drop_tables (void *cls) GNUNET_PQ_make_execute ( "DROP TABLE IF EXISTS denomination_revocations CASCADE;"), GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS denominations CASCADE;"), + GNUNET_PQ_make_execute ("DROP SCHEMA IF EXISTS _v CASCADE;"), GNUNET_PQ_EXECUTE_STATEMENT_END }; struct GNUNET_PQ_Context *conn; |