diff options
author | git-marijus <mario@mariovavti.com> | 2017-05-04 09:59:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 09:59:35 +0200 |
commit | bc776a9534b57231b83f4c65fefdc3637db0e024 (patch) | |
tree | 95715134462579699fe8cc13d1925ebfc0d032e2 /install/update.php | |
parent | 45c64c2d2e5f7bde8a12c0010cd87eea106a65c6 (diff) | |
parent | 1e59d9ade576acbd1768303cb9e9c994b4d50392 (diff) | |
download | volse-hubzilla-bc776a9534b57231b83f4c65fefdc3637db0e024.tar.gz volse-hubzilla-bc776a9534b57231b83f4c65fefdc3637db0e024.tar.bz2 volse-hubzilla-bc776a9534b57231b83f4c65fefdc3637db0e024.zip |
Merge pull request #750 from zotlabs/abnothere
abook_not_here flag created to indicate singleton connections which a…
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; +} |