diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-14 00:31:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-14 00:31:02 +0100 |
commit | 8d71f909cb22fbf6774e4042309a8eb133af3bfc (patch) | |
tree | 0efc19ac24a6521f927772364f1379154d2d0cad /src/datastore | |
parent | 6e01dc4d91d072e8e58ba0140fb7f4ddd5109358 (diff) | |
download | gnunet-8d71f909cb22fbf6774e4042309a8eb133af3bfc.tar.gz gnunet-8d71f909cb22fbf6774e4042309a8eb133af3bfc.zip |
convert sqlite peerstore to using libgnunetsq
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 491f73ed5..9ca8f056a 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -361,11 +361,15 @@ database_setup (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
361 | sqlite3_step (stmt)) && | 361 | sqlite3_step (stmt)) && |
362 | (SQLITE_OK != | 362 | (SQLITE_OK != |
363 | sqlite3_exec (plugin->dbh, | 363 | sqlite3_exec (plugin->dbh, |
364 | "CREATE TABLE gn090 (" " repl INT4 NOT NULL DEFAULT 0," | 364 | "CREATE TABLE gn090 (" |
365 | " type INT4 NOT NULL DEFAULT 0," " prio INT4 NOT NULL DEFAULT 0," | 365 | " repl INT4 NOT NULL DEFAULT 0," |
366 | " type INT4 NOT NULL DEFAULT 0," | ||
367 | " prio INT4 NOT NULL DEFAULT 0," | ||
366 | " anonLevel INT4 NOT NULL DEFAULT 0," | 368 | " anonLevel INT4 NOT NULL DEFAULT 0," |
367 | " expire INT8 NOT NULL DEFAULT 0," " rvalue INT8 NOT NULL," | 369 | " expire INT8 NOT NULL DEFAULT 0," |
368 | " hash TEXT NOT NULL DEFAULT ''," " vhash TEXT NOT NULL DEFAULT ''," | 370 | " rvalue INT8 NOT NULL," |
371 | " hash TEXT NOT NULL DEFAULT ''," | ||
372 | " vhash TEXT NOT NULL DEFAULT ''," | ||
369 | " value BLOB NOT NULL DEFAULT '')", | 373 | " value BLOB NOT NULL DEFAULT '')", |
370 | NULL, | 374 | NULL, |
371 | NULL, | 375 | NULL, |