streams/Zotlabs/Update/_1180.php

34 lines
632 B
PHP
Raw Normal View History

<?php
namespace Zotlabs\Update;
2021-12-02 23:02:31 +00:00
class _1180
{
public function run()
{
require_once('include/perm_upgrade.php');
$r1 = q("select * from channel where true");
if ($r1) {
foreach ($r1 as $rr) {
perm_limits_upgrade($rr);
autoperms_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;
}
}