summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-19 11:28:03 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-19 11:28:03 +0200
commit5c2c2dd78790bbd20e6d720fc1c7de532daf3b29 (patch)
tree41aefb987f851767f4bb542fa9098dcbc9b7dafb /src
parentd39e4a11cbc8cc18d51e2b877155acc96d2293b2 (diff)
downloadexchange-5c2c2dd78790bbd20e6d720fc1c7de532daf3b29.tar.gz
exchange-5c2c2dd78790bbd20e6d720fc1c7de532daf3b29.tar.bz2
exchange-5c2c2dd78790bbd20e6d720fc1c7de532daf3b29.zip
remove primary key constraint to address #3769
Diffstat (limited to 'src')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index e822c7113..836a8a8c8 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -384,8 +384,7 @@ postgres_create_tables (void *cls,
and could be used by the mearchant for further inquriries about
the deposit's execution. (#3816); */
SQLEXEC("CREATE TABLE IF NOT EXISTS deposits "
- /* FIXME #3769: the following primary key may be too restrictive */
- "(coin_pub BYTEA NOT NULL PRIMARY KEY CHECK (LENGTH(coin_pub)=32)"
+ "(coin_pub BYTEA NOT NULL CHECK (LENGTH(coin_pub)=32)"
",denom_pub BYTEA NOT NULL REFERENCES denominations (pub)"
",denom_sig BYTEA NOT NULL"
",transaction_id INT8 NOT NULL"