From 19911c825b2ed766210494dd7e65ebbe399ae1fb Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Fri, 6 Mar 2015 17:56:23 +0100 Subject: [PATCH] db: Do not store blind signature as we generate them on the fly --- src/mint/mint_db.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mint/mint_db.c b/src/mint/mint_db.c index 36e88a794..fa3158cd4 100644 --- a/src/mint/mint_db.c +++ b/src/mint/mint_db.c @@ -191,13 +191,12 @@ TALER_MINT_DB_create_tables (int temporary) SQLEXEC ("CREATE TABLE IF NOT EXISTS collectable_blindcoins" "(" "blind_ev BYTEA PRIMARY KEY" - ",blind_ev_sig BYTEA NOT NULL" ",denom_pub BYTEA NOT NULL" ",reserve_sig BYTEA NOT NULL" ",reserve_pub BYTEA REFERENCES reserves (reserve_pub) ON DELETE CASCADE" - ");" - "CREATE INDEX collectable_blindcoins_index ON" - " collectable_blindcoins(reserve_pub)"); + ");"); + SQLEXEC ("CREATE INDEX collectable_blindcoins_reserve_pub_index ON" + " collectable_blindcoins (reserve_pub)"); SQLEXEC("CREATE TABLE IF NOT EXISTS known_coins " "(" " coin_pub BYTEA NOT NULL PRIMARY KEY"