diff options
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php index f2d97430b..81f9efb21 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1180 ); +define( 'UPDATE_VERSION' , 1181 ); /** * @@ -2402,5 +2402,29 @@ function update_r1179() { return UPDATE_SUCCESS; return UPDATE_FAILED; +} + +function update_r1180() { + + require_once('include/perm_upgrade.php'); + + $r1 = q("select * from channel where true"); + if($r1) { + foreach($r1 as $rr) { + perm_limits_upgrade($rr); + } + } + + $r2 = q("select * from abook where true"); + if($r2) { + foreach($r2 as $rr) { + perm_abook_upgrade($rr); + } + } + + $r = $r1 && $r2; + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} -}
\ No newline at end of file |