aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-03-09 18:14:07 +0100
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-03-09 19:52:54 +0100
commit3d4c72e20793c1eddb9394b67089d2e63cf63192 (patch)
treed24e19ab736e1b85b6eec3c2a58e530fe7817c0b
parent1841c0e70313ae47b81276ccee2fd88e794866d2 (diff)
downloadexchange-3d4c72e20793c1eddb9394b67089d2e63cf63192.tar.gz
exchange-3d4c72e20793c1eddb9394b67089d2e63cf63192.zip
db: add currency column to reserves_in table
-rw-r--r--src/mint/mint_db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mint/mint_db.c b/src/mint/mint_db.c
index 0d4cf14f6..f66eb66a1 100644
--- a/src/mint/mint_db.c
+++ b/src/mint/mint_db.c
@@ -171,6 +171,7 @@ TALER_MINT_DB_create_tables (int temporary)
171 " reserve_pub BYTEA REFERENCES reserves (reserve_pub) ON DELETE CASCADE" 171 " reserve_pub BYTEA REFERENCES reserves (reserve_pub) ON DELETE CASCADE"
172 ",balance_value INT4 NOT NULL" 172 ",balance_value INT4 NOT NULL"
173 ",balance_fraction INT4 NOT NULL" 173 ",balance_fraction INT4 NOT NULL"
174 ",balance_currency VARCHAR(4) NOT NULL"
174 ",expiration_date INT8 NOT NULL" 175 ",expiration_date INT8 NOT NULL"
175 ");"); 176 ");");
176 /* Create an index on the foreign key as it is not created automatically by PSQL */ 177 /* Create an index on the foreign key as it is not created automatically by PSQL */
@@ -326,9 +327,10 @@ TALER_MINT_DB_prepare (PGconn *db_conn)
326 " reserve_pub," 327 " reserve_pub,"
327 " balance_value," 328 " balance_value,"
328 " balance_fraction," 329 " balance_fraction,"
330 " balance_currency,"
329 " expiration_date) VALUES (" 331 " expiration_date) VALUES ("
330 " $1, $2, $3, $4);", 332 " $1, $2, $3, $4, $5);",
331 4, NULL); 333 5, NULL);
332 PREPARE ("insert_collectable_blindcoin", 334 PREPARE ("insert_collectable_blindcoin",
333 "INSERT INTO collectable_blindcoins ( " 335 "INSERT INTO collectable_blindcoins ( "
334 " blind_ev" 336 " blind_ev"