diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-03 18:50:32 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-03 18:50:32 -0700 |
commit | 519aef7ff52013170b08eb89c0a95072fe8047e1 (patch) | |
tree | 169cf989615c5caab26b35fab492302e862fdf34 /install/update.php | |
parent | d6a3f7765adbbf5f58c08964932d25d3c0364439 (diff) | |
download | volse-hubzilla-519aef7ff52013170b08eb89c0a95072fe8047e1.tar.gz volse-hubzilla-519aef7ff52013170b08eb89c0a95072fe8047e1.tar.bz2 volse-hubzilla-519aef7ff52013170b08eb89c0a95072fe8047e1.zip |
abook_not_here flag created to indicate singleton connections which are connected to this channel but not on this hub. abook_instance enumerates which hubs the connections is valid, but we ultimately need something more efficiently searchable to decide what operations are supported w/r/t this connection in the context of this hub. This flag is ignored during sync to clones although the code to set it correctly during channel creation, import, and sync has not yet been implemented.
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index ce65d1db9..65506a2f7 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1190 ); +define( 'UPDATE_VERSION' , 1191 ); /** * @@ -2532,3 +2532,12 @@ function update_r1189() { } +function update_r1190() { + $r1 = q("alter table abook add abook_not_here int(11) not null default '0' "); + + $r2 = q("create index abook_not_here on abook (abook_not_here)"); + + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |