diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-29 11:32:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-29 11:32:25 +0100 |
commit | 5ddbdfe91b3c4c17d4d624925e93eee243f64a99 (patch) | |
tree | 15f8b879fd310ea4251b7795475620407f1b9cf0 | |
parent | a1b01f1195bd5c97d47f02f8cd190d28eb18af7e (diff) | |
download | exchange-5ddbdfe91b3c4c17d4d624925e93eee243f64a99.tar.gz exchange-5ddbdfe91b3c4c17d4d624925e93eee243f64a99.zip |
do NOT drop deposit confirmations on taler-auditor restart (-r)
-rw-r--r-- | src/auditordb/plugin_auditordb_postgres.c | 6 | ||||
-rw-r--r-- | src/include/taler_auditordb_plugin.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c index b4bb50079..e5445f2ad 100644 --- a/src/auditordb/plugin_auditordb_postgres.c +++ b/src/auditordb/plugin_auditordb_postgres.c | |||
@@ -95,7 +95,7 @@ struct PostgresClosure | |||
95 | * Drop all Taler tables. This should only be used by testcases. | 95 | * Drop all Taler tables. This should only be used by testcases. |
96 | * | 96 | * |
97 | * @param cls the `struct PostgresClosure` with the plugin-specific state | 97 | * @param cls the `struct PostgresClosure` with the plugin-specific state |
98 | * @param drop_exchangelist should we also drop the exchange table? | 98 | * @param drop_exchangelist should we also drop the exchange and deposit_confirmations table? |
99 | * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure | 99 | * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure |
100 | */ | 100 | */ |
101 | static int | 101 | static int |
@@ -124,12 +124,12 @@ postgres_drop_tables (void *cls, | |||
124 | GNUNET_PQ_make_execute ( | 124 | GNUNET_PQ_make_execute ( |
125 | "DROP TABLE IF EXISTS wire_auditor_account_progress;"), | 125 | "DROP TABLE IF EXISTS wire_auditor_account_progress;"), |
126 | GNUNET_PQ_make_execute ( | 126 | GNUNET_PQ_make_execute ( |
127 | "DROP TABLE IF EXISTS deposit_confirmations CASCADE;"), | ||
128 | GNUNET_PQ_make_execute ( | ||
129 | "DROP TABLE IF EXISTS auditor_historic_reserve_summary CASCADE;"), | 127 | "DROP TABLE IF EXISTS auditor_historic_reserve_summary CASCADE;"), |
130 | GNUNET_PQ_EXECUTE_STATEMENT_END | 128 | GNUNET_PQ_EXECUTE_STATEMENT_END |
131 | }; | 129 | }; |
132 | struct GNUNET_PQ_ExecuteStatement esx[] = { | 130 | struct GNUNET_PQ_ExecuteStatement esx[] = { |
131 | GNUNET_PQ_make_execute ( | ||
132 | "DROP TABLE IF EXISTS deposit_confirmations CASCADE;"), | ||
133 | GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS auditor_exchanges CASCADE;"), | 133 | GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS auditor_exchanges CASCADE;"), |
134 | GNUNET_PQ_EXECUTE_STATEMENT_END | 134 | GNUNET_PQ_EXECUTE_STATEMENT_END |
135 | }; | 135 | }; |
diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h index 1ec03e650..6241d8196 100644 --- a/src/include/taler_auditordb_plugin.h +++ b/src/include/taler_auditordb_plugin.h | |||
@@ -428,7 +428,7 @@ struct TALER_AUDITORDB_Plugin | |||
428 | * Drop the Taler tables. This should only be used in testcases. | 428 | * Drop the Taler tables. This should only be used in testcases. |
429 | * | 429 | * |
430 | * @param cls the @e cls of this struct with the plugin-specific state | 430 | * @param cls the @e cls of this struct with the plugin-specific state |
431 | * @param drop_exchangelist should we also drop the list of audited exchanges | 431 | * @param drop_exchangelist should we also drop the exchange and deposit_confirmations table? |
432 | * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure | 432 | * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure |
433 | */ | 433 | */ |
434 | int | 434 | int |