From 3d4c72e20793c1eddb9394b67089d2e63cf63192 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 9 Mar 2015 18:14:07 +0100 Subject: db: add currency column to reserves_in table --- src/mint/mint_db.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mint/mint_db.c') 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) " reserve_pub BYTEA REFERENCES reserves (reserve_pub) ON DELETE CASCADE" ",balance_value INT4 NOT NULL" ",balance_fraction INT4 NOT NULL" + ",balance_currency VARCHAR(4) NOT NULL" ",expiration_date INT8 NOT NULL" ");"); /* 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) " reserve_pub," " balance_value," " balance_fraction," + " balance_currency," " expiration_date) VALUES (" - " $1, $2, $3, $4);", - 4, NULL); + " $1, $2, $3, $4, $5);", + 5, NULL); PREPARE ("insert_collectable_blindcoin", "INSERT INTO collectable_blindcoins ( " " blind_ev" -- cgit v1.2.3