summaryrefslogtreecommitdiff
path: root/src/backenddb/plugin_merchantdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-07 14:41:55 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-07 14:41:55 +0100
commitc457a1cdb6bc7f359559ed0b73269a84f4b45b4f (patch)
tree5b38897d9ca6720907682832fd112b54f1a8ed0a /src/backenddb/plugin_merchantdb_postgres.c
parent6e8e437885422a42537761f8b7ca58844af71094 (diff)
downloadmerchant-c457a1cdb6bc7f359559ed0b73269a84f4b45b4f.tar.gz
merchant-c457a1cdb6bc7f359559ed0b73269a84f4b45b4f.tar.bz2
merchant-c457a1cdb6bc7f359559ed0b73269a84f4b45b4f.zip
properly deploy procedures.sql, add trigger for taler-merchant-depositcheck, rename field to match contract terms
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c5
1 files changed, 4 insertions, 1 deletions
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;
}