gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r38147 - gnunet/src/psycstore


From: gnunet
Subject: [GNUnet-SVN] r38147 - gnunet/src/psycstore
Date: Thu, 13 Oct 2016 00:07:34 +0200

Author: tg
Date: 2016-10-13 00:07:34 +0200 (Thu, 13 Oct 2016)
New Revision: 38147

Modified:
   gnunet/src/psycstore/plugin_psycstore_mysql.c
   gnunet/src/psycstore/plugin_psycstore_sqlite.c
Log:
psycstore

Modified: gnunet/src/psycstore/plugin_psycstore_mysql.c
===================================================================
--- gnunet/src/psycstore/plugin_psycstore_mysql.c       2016-10-12 21:54:30 UTC 
(rev 38146)
+++ gnunet/src/psycstore/plugin_psycstore_mysql.c       2016-10-12 22:07:34 UTC 
(rev 38147)
@@ -296,7 +296,7 @@
   /* 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"

Modified: gnunet/src/psycstore/plugin_psycstore_sqlite.c
===================================================================
--- gnunet/src/psycstore/plugin_psycstore_sqlite.c      2016-10-12 21:54:30 UTC 
(rev 38146)
+++ gnunet/src/psycstore/plugin_psycstore_sqlite.c      2016-10-12 22:07:34 UTC 
(rev 38147)
@@ -348,7 +348,7 @@
   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
             ");");
@@ -356,7 +356,7 @@
   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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]