aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-dbinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-dbinit.c')
-rw-r--r--src/mint/taler-mint-dbinit.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mint/taler-mint-dbinit.c b/src/mint/taler-mint-dbinit.c
index d877f62c6..3d080b523 100644
--- a/src/mint/taler-mint-dbinit.c
+++ b/src/mint/taler-mint-dbinit.c
@@ -95,7 +95,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn)
95 } 95 }
96 PQclear (result); 96 PQclear (result);
97 97
98 result = PQexec (conn, 98 result = PQexec (conn,
99 "CREATE TABLE IF NOT EXISTS refresh_sessions " 99 "CREATE TABLE IF NOT EXISTS refresh_sessions "
100 "(" 100 "("
101 " session_pub BYTEA PRIMARY KEY CHECK (length(session_pub) = 32)" 101 " session_pub BYTEA PRIMARY KEY CHECK (length(session_pub) = 32)"
@@ -113,7 +113,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn)
113 } 113 }
114 PQclear (result); 114 PQclear (result);
115 115
116 result = PQexec (conn, 116 result = PQexec (conn,
117 "CREATE TABLE IF NOT EXISTS refresh_order " 117 "CREATE TABLE IF NOT EXISTS refresh_order "
118 "( " 118 "( "
119 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub)" 119 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub)"
@@ -130,7 +130,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn)
130 PQclear (result); 130 PQclear (result);
131 131
132 132
133 result = PQexec (conn, 133 result = PQexec (conn,
134 "CREATE TABLE IF NOT EXISTS refresh_commit_link" 134 "CREATE TABLE IF NOT EXISTS refresh_commit_link"
135 "(" 135 "("
136 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub)" 136 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub)"
@@ -150,7 +150,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn)
150 } 150 }
151 PQclear (result); 151 PQclear (result);
152 152
153 result = PQexec (conn, 153 result = PQexec (conn,
154 "CREATE TABLE IF NOT EXISTS refresh_commit_coin" 154 "CREATE TABLE IF NOT EXISTS refresh_commit_coin"
155 "(" 155 "("
156 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) " 156 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) "
@@ -169,7 +169,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn)
169 } 169 }
170 PQclear (result); 170 PQclear (result);
171 171
172 result = PQexec (conn, 172 result = PQexec (conn,
173 "CREATE TABLE IF NOT EXISTS refresh_melt" 173 "CREATE TABLE IF NOT EXISTS refresh_melt"
174 "(" 174 "("
175 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) " 175 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) "
@@ -185,7 +185,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn)
185 } 185 }
186 PQclear (result); 186 PQclear (result);
187 187
188 result = PQexec (conn, 188 result = PQexec (conn,
189 "CREATE TABLE IF NOT EXISTS refresh_collectable" 189 "CREATE TABLE IF NOT EXISTS refresh_collectable"
190 "(" 190 "("
191 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) " 191 " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) "
@@ -245,7 +245,7 @@ main (int argc, char *const *argv)
245 GNUNET_GETOPT_OPTION_END 245 GNUNET_GETOPT_OPTION_END
246 }; 246 };
247 247
248 if (GNUNET_GETOPT_run ("taler-mint-serve", options, argc, argv) < 0) 248 if (GNUNET_GETOPT_run ("taler-mint-serve", options, argc, argv) < 0)
249 return 1; 249 return 1;
250 250
251 GNUNET_assert (GNUNET_OK == GNUNET_log_setup ("taler-mint-dbinit", "INFO", NULL)); 251 GNUNET_assert (GNUNET_OK == GNUNET_log_setup ("taler-mint-dbinit", "INFO", NULL));
@@ -256,7 +256,7 @@ main (int argc, char *const *argv)
256 return 1; 256 return 1;
257 } 257 }
258 258
259 cfg = TALER_MINT_config_load (mint_base_dir); 259 cfg = TALER_config_load (mint_base_dir);
260 if (NULL == cfg) 260 if (NULL == cfg)
261 { 261 {
262 fprintf (stderr, "Can't load mint configuration.\n"); 262 fprintf (stderr, "Can't load mint configuration.\n");
@@ -282,4 +282,3 @@ main (int argc, char *const *argv)
282 282
283 return 0; 283 return 0;
284} 284}
285