commit 40ab9e60ad6f7b0896ec335c2d0ff201673dd4e3
parent a2c77cd36a2b0d0ebb7d8b999cabcc8a36ccd6bb
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 11 Jun 2015 15:06:49 +0200
adding last missing 'REFERENCES' statement to fix #3770
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
@@ -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)"
")");