diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-05-04 10:12:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-05-04 10:12:05 +0200 |
commit | a92b9b7adb2be489106138b6269a5f7fe8eea5aa (patch) | |
tree | abab4112741f5d28720185fe0308552de23f5e48 /install/update.php | |
parent | 263cfe2538a3e1a4e866c80b44ada158475cc792 (diff) | |
parent | bc776a9534b57231b83f4c65fefdc3637db0e024 (diff) | |
download | volse-hubzilla-a92b9b7adb2be489106138b6269a5f7fe8eea5aa.tar.gz volse-hubzilla-a92b9b7adb2be489106138b6269a5f7fe8eea5aa.tar.bz2 volse-hubzilla-a92b9b7adb2be489106138b6269a5f7fe8eea5aa.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
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; +} |