From c457a1cdb6bc7f359559ed0b73269a84f4b45b4f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 7 Jan 2024 14:41:55 +0100 Subject: properly deploy procedures.sql, add trigger for taler-merchant-depositcheck, rename field to match contract terms --- src/backenddb/plugin_merchantdb_postgres.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backenddb/plugin_merchantdb_postgres.c') diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 291008d0..40fb1d19 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -202,6 +202,7 @@ postgres_create_tables (void *cls) GNUNET_PQ_make_try_execute ("SET search_path TO merchant;"), GNUNET_PQ_EXECUTE_STATEMENT_END }; + enum GNUNET_GenericReturnValue ret; conn = GNUNET_PQ_connect_with_cfg (pc->cfg, "merchantdb-postgres", @@ -210,8 +211,10 @@ postgres_create_tables (void *cls) NULL); if (NULL == conn) return GNUNET_SYSERR; + ret = GNUNET_PQ_exec_sql (conn, + "procedures"); GNUNET_PQ_disconnect (conn); - return GNUNET_OK; + return ret; } -- cgit v1.2.3