aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-10-12 22:07:34 +0000
committerGabor X Toth <*@tg-x.net>2016-10-12 22:07:34 +0000
commit41f2b9356fb9649d7b1732603aad2831648da323 (patch)
tree686ae6405bfda76223c815c42e72484becd349a7 /src/psycstore
parentb44b31bd94d3a7479e1ab2bf76acd82030455703 (diff)
downloadgnunet-41f2b9356fb9649d7b1732603aad2831648da323.tar.gz
gnunet-41f2b9356fb9649d7b1732603aad2831648da323.zip
psycstore
Diffstat (limited to 'src/psycstore')
-rw-r--r--src/psycstore/plugin_psycstore_mysql.c2
-rw-r--r--src/psycstore/plugin_psycstore_sqlite.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/psycstore/plugin_psycstore_mysql.c b/src/psycstore/plugin_psycstore_mysql.c
index 01a0282c8..c76e7e6b1 100644
--- a/src/psycstore/plugin_psycstore_mysql.c
+++ b/src/psycstore/plugin_psycstore_mysql.c
@@ -296,7 +296,7 @@ database_setup (struct Plugin *plugin)
296 /* Create tables */ 296 /* Create tables */
297 STMT_RUN ("CREATE TABLE IF NOT EXISTS channels (\n" 297 STMT_RUN ("CREATE TABLE IF NOT EXISTS channels (\n"
298 " id BIGINT UNSIGNED AUTO_INCREMENT,\n" 298 " id BIGINT UNSIGNED AUTO_INCREMENT,\n"
299 " pub_key BLOB(23),\n" 299 " pub_key BLOB(32),\n"
300 " max_state_message_id BIGINT UNSIGNED,\n" 300 " max_state_message_id BIGINT UNSIGNED,\n"
301 " state_hash_message_id BIGINT UNSIGNED,\n" 301 " state_hash_message_id BIGINT UNSIGNED,\n"
302 " PRIMARY KEY(id),\n" 302 " PRIMARY KEY(id),\n"
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,