diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-26 19:29:58 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-26 19:29:58 +0100 |
commit | ffe1ec4cb9c9ad23ecba095acb4e38edb741b402 (patch) | |
tree | c9631b8ddc93b7e996e3cdfe27eeb05d9edd4856 /src/mint | |
parent | 10b693ace428f7619d3dfc393d8ca4e6e93b91fd (diff) | |
download | exchange-ffe1ec4cb9c9ad23ecba095acb4e38edb741b402.tar.xz |
db: fix leftovers from #3716
Diffstat (limited to 'src/mint')
-rw-r--r-- | src/mint/plugin_mintdb_postgres.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mint/plugin_mintdb_postgres.c b/src/mint/plugin_mintdb_postgres.c index 4b7637cf8..d33e0dbdb 100644 --- a/src/mint/plugin_mintdb_postgres.c +++ b/src/mint/plugin_mintdb_postgres.c @@ -182,7 +182,7 @@ postgres_create_tables (void *cls, SQLEXEC ("CREATE TABLE IF NOT EXISTS reserves" "(" " reserve_pub BYTEA PRIMARY KEY" - ",current_balance_value INT4 NOT NULL" + ",current_balance_value INT8 NOT NULL" ",current_balance_fraction INT4 NOT NULL" ",balance_currency VARCHAR(4) NOT NULL" ",expiration_date INT8 NOT NULL" @@ -194,7 +194,7 @@ postgres_create_tables (void *cls, SQLEXEC("CREATE TABLE IF NOT EXISTS reserves_in" "(" " reserve_pub BYTEA REFERENCES reserves (reserve_pub) ON DELETE CASCADE" - ",balance_value INT4 NOT NULL" + ",balance_value INT8 NOT NULL" ",balance_fraction INT4 NOT NULL" ",balance_currency VARCHAR(4) NOT NULL" ",expiration_date INT8 NOT NULL" @@ -217,7 +217,7 @@ postgres_create_tables (void *cls, " coin_pub BYTEA NOT NULL PRIMARY KEY" ",denom_pub BYTEA NOT NULL" ",denom_sig BYTEA NOT NULL" - ",expended_value INT4 NOT NULL" + ",expended_value INT8 NOT NULL" ",expended_fraction INT4 NOT NULL" ",expended_currency VARCHAR(4) NOT NULL" ",refresh_session_hash BYTEA" @@ -280,7 +280,7 @@ postgres_create_tables (void *cls, ",denom_sig BYTEA NOT NULL" ",transaction_id INT8 NOT NULL" ",amount_currency VARCHAR(4) NOT NULL" - ",amount_value INT4 NOT NULL" + ",amount_value INT8 NOT NULL" ",amount_fraction INT4 NOT NULL" ",merchant_pub BYTEA NOT NULL CHECK (length(merchant_pub)=32)" ",h_contract BYTEA NOT NULL CHECK (length(h_contract)=64)" |