exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 3d4c72e20793c1eddb9394b67089d2e63cf63192
parent 1841c0e70313ae47b81276ccee2fd88e794866d2
Author: Sree Harsha Totakura <sreeharsha@totakura.in>
Date:   Mon,  9 Mar 2015 18:14:07 +0100

db: add currency column to reserves_in table

Diffstat:
Msrc/mint/mint_db.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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"