/* Create tables */
STMT_RUN ("CREATE TABLE IF NOT EXISTS channels (\n"
" id BIGINT UNSIGNED AUTO_INCREMENT,\n"
- " pub_key BLOB(23),\n"
+ " pub_key BLOB(32),\n"
" max_state_message_id BIGINT UNSIGNED,\n"
" state_hash_message_id BIGINT UNSIGNED,\n"
" PRIMARY KEY(id),\n"
sql_exec (plugin->dbh,
"CREATE TABLE IF NOT EXISTS channels (\n"
" id INTEGER PRIMARY KEY,\n"
- " pub_key BLOB UNIQUE,\n"
+ " pub_key BLOB(32) UNIQUE,\n"
" max_state_message_id INTEGER,\n" // last applied state message ID
" state_hash_message_id INTEGER\n" // last message ID with a state hash
");");
sql_exec (plugin->dbh,
"CREATE TABLE IF NOT EXISTS slaves (\n"
" id INTEGER PRIMARY KEY,\n"
- " pub_key BLOB UNIQUE\n"
+ " pub_key BLOB(32) UNIQUE\n"
");");
sql_exec (plugin->dbh,