adding last missing 'REFERENCES' statement to fix #3770

This commit is contained in:
Christian Grothoff 2015-06-11 15:06:49 +02:00
parent a2c77cd36a
commit 40ab9e60ad

View File

@ -330,7 +330,7 @@ postgres_create_tables (void *cls,
SQLEXEC("CREATE TABLE IF NOT EXISTS refresh_order "
"(session_hash BYTEA NOT NULL CHECK (LENGTH(session_hash)=64) REFERENCES refresh_sessions (session_hash)"
",newcoin_index INT2 NOT NULL "
",denom_pub BYTEA NOT NULL "
",denom_pub BYTEA NOT NULL REFERENCES denominations (pub)"
",PRIMARY KEY (session_hash, newcoin_index)"
")");