stashing changes - added social graph table (n.b. this is ONLY mapping what identity WE used with to communicate with another identity. This is for opportunistic key reset messages.) ENGINE-398
authorKrista Bennett <krista@pep-project.org>
Wed, 06 Jun 2018 10:49:38 +0200
branchENGINE-398
changeset 27391353fe080162
parent 2704 1d58d97aded9
child 2746 2d8e203bf93c
stashing changes - added social graph table (n.b. this is ONLY mapping what identity WE used with to communicate with another identity. This is for opportunistic key reset messages.)
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Thu May 31 08:22:20 2018 +0200
     1.2 +++ b/src/pEpEngine.c	Wed Jun 06 10:49:38 2018 +0200
     1.3 @@ -616,7 +616,7 @@
     1.4      sqlite3_busy_timeout(_session->system_db, 1000);
     1.5  
     1.6  // increment this when patching DDL
     1.7 -#define _DDL_USER_VERSION "8"
     1.8 +#define _DDL_USER_VERSION "9"
     1.9  
    1.10      if (in_first) {
    1.11  
    1.12 @@ -718,6 +718,12 @@
    1.13                  "create table if not exists mistrusted_keys (\n"
    1.14                  "    fpr text primary key\n"
    1.15                  ");\n"
    1.16 +                // social graph for key resets
    1.17 +                "create table if not exists social_graph (\n"
    1.18 +                "    own_id text,"
    1.19 +                "    own_address text,\n"
    1.20 +                "    out_count integer default 0\n"
    1.21 +                ");\n"
    1.22                  ,
    1.23              NULL,
    1.24              NULL,