remove primary key constraint to address #3769

This commit is contained in:
Christian Grothoff 2015-06-19 11:28:03 +02:00
parent d39e4a11cb
commit 5c2c2dd787

View File

@ -384,8 +384,7 @@ postgres_create_tables (void *cls,
and could be used by the mearchant for further inquriries about and could be used by the mearchant for further inquriries about
the deposit's execution. (#3816); */ the deposit's execution. (#3816); */
SQLEXEC("CREATE TABLE IF NOT EXISTS deposits " SQLEXEC("CREATE TABLE IF NOT EXISTS deposits "
/* FIXME #3769: the following primary key may be too restrictive */ "(coin_pub BYTEA NOT NULL CHECK (LENGTH(coin_pub)=32)"
"(coin_pub BYTEA NOT NULL PRIMARY KEY CHECK (LENGTH(coin_pub)=32)"
",denom_pub BYTEA NOT NULL REFERENCES denominations (pub)" ",denom_pub BYTEA NOT NULL REFERENCES denominations (pub)"
",denom_sig BYTEA NOT NULL" ",denom_sig BYTEA NOT NULL"
",transaction_id INT8 NOT NULL" ",transaction_id INT8 NOT NULL"