aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/plugin_psycstore_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psycstore/plugin_psycstore_sqlite.c')
-rw-r--r--src/psycstore/plugin_psycstore_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psycstore/plugin_psycstore_sqlite.c b/src/psycstore/plugin_psycstore_sqlite.c
index 4d21696ce..69291b440 100644
--- a/src/psycstore/plugin_psycstore_sqlite.c
+++ b/src/psycstore/plugin_psycstore_sqlite.c
@@ -348,7 +348,7 @@ database_setup (struct Plugin *plugin)
348 sql_exec (plugin->dbh, 348 sql_exec (plugin->dbh,
349 "CREATE TABLE IF NOT EXISTS channels (\n" 349 "CREATE TABLE IF NOT EXISTS channels (\n"
350 " id INTEGER PRIMARY KEY,\n" 350 " id INTEGER PRIMARY KEY,\n"
351 " pub_key BLOB UNIQUE,\n" 351 " pub_key BLOB(32) UNIQUE,\n"
352 " max_state_message_id INTEGER,\n" // last applied state message ID 352 " max_state_message_id INTEGER,\n" // last applied state message ID
353 " state_hash_message_id INTEGER\n" // last message ID with a state hash 353 " state_hash_message_id INTEGER\n" // last message ID with a state hash
354 ");"); 354 ");");
@@ -356,7 +356,7 @@ database_setup (struct Plugin *plugin)
356 sql_exec (plugin->dbh, 356 sql_exec (plugin->dbh,
357 "CREATE TABLE IF NOT EXISTS slaves (\n" 357 "CREATE TABLE IF NOT EXISTS slaves (\n"
358 " id INTEGER PRIMARY KEY,\n" 358 " id INTEGER PRIMARY KEY,\n"
359 " pub_key BLOB UNIQUE\n" 359 " pub_key BLOB(32) UNIQUE\n"
360 ");"); 360 ");");
361 361
362 sql_exec (plugin->dbh, 362 sql_exec (plugin->dbh,