mintdb postgres: fix session hash length

This commit is contained in:
Sree Harsha Totakura 2015-04-10 14:48:32 +02:00
parent 23445db811
commit 0e52c47de7

View File

@ -232,7 +232,7 @@ postgres_create_tables (void *cls,
*/ */
SQLEXEC("CREATE TABLE IF NOT EXISTS refresh_sessions " SQLEXEC("CREATE TABLE IF NOT EXISTS refresh_sessions "
"(" "("
" session_hash BYTEA PRIMARY KEY CHECK (length(session_hash) = 32)" " session_hash BYTEA PRIMARY KEY CHECK (length(session_hash) = 64)"
",num_oldcoins INT2 NOT NULL" ",num_oldcoins INT2 NOT NULL"
",num_newcoins INT2 NOT NULL" ",num_newcoins INT2 NOT NULL"
",noreveal_index INT2 NOT NULL" ",noreveal_index INT2 NOT NULL"