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)" ")");