aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-03-05 16:45:31 +0100
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-03-06 10:32:02 +0100
commit3f7a1a5c8a8b8e290b3ab548f0e5be01e7058bf1 (patch)
tree8c4c789931b2dd930215cbcfa2088f52194d0c57
parent39c538311dd13bf5691700e698528c8562e7d726 (diff)
db: No special handling for failed INDEX creation
-rw-r--r--src/mint/mint_db.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mint/mint_db.c b/src/mint/mint_db.c
index e029d0567..b84af0f22 100644
--- a/src/mint/mint_db.c
+++ b/src/mint/mint_db.c
@@ -164,16 +164,8 @@ TALER_MINT_DB_create_tables (int temporary)
",balance_fraction INT4 NOT NULL"
",expiration_date INT8 NOT NULL"
");");
- result = PQexec (conn,
- "CREATE INDEX reserves_in_index ON reserves_in (reserve_pub);");
- if (PGRES_COMMAND_OK != PQresultStatus (result))
- {
- ExecStatusType status = PQresultStatus (result);
- PQclear (result);
- result = NULL;
- goto SQLEXEC_fail;
- }
- PQclear (result);
+ /* Create an index on the foreign key as it is not created automatically by PSQL */
+ SQLEXEC ("CREATE INDEX reserves_in_index ON reserves_in (reserve_pub);");
SQLEXEC ("CREATE TABLE IF NOT EXISTS collectable_blindcoins"
"("
"blind_ev BYTEA PRIMARY KEY"