diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-09 18:14:07 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-09 19:52:54 +0100 |
commit | 3d4c72e20793c1eddb9394b67089d2e63cf63192 (patch) | |
tree | d24e19ab736e1b85b6eec3c2a58e530fe7817c0b /src/mint | |
parent | 1841c0e70313ae47b81276ccee2fd88e794866d2 (diff) |
db: add currency column to reserves_in table
Diffstat (limited to 'src/mint')
-rw-r--r-- | src/mint/mint_db.c | 6 |
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) " 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" |