summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-11 15:06:49 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-11 15:06:49 +0200
commit40ab9e60ad6f7b0896ec335c2d0ff201673dd4e3 (patch)
tree6c7b70eeada4e53142f772eccd5dc46ad0e9070b /src
parenta2c77cd36a2b0d0ebb7d8b999cabcc8a36ccd6bb (diff)
downloadexchange-40ab9e60ad6f7b0896ec335c2d0ff201673dd4e3.tar.gz
exchange-40ab9e60ad6f7b0896ec335c2d0ff201673dd4e3.tar.bz2
exchange-40ab9e60ad6f7b0896ec335c2d0ff201673dd4e3.zip
adding last missing 'REFERENCES' statement to fix #3770
Diffstat (limited to 'src')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index fe2362844..40fbe12ef 100644
--- 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)"
")");