streams/Zotlabs/Update/_1180.php

34 lines
643 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;
2021-12-03 03:01:39 +00:00
if ($r) {
2021-12-02 23:02:31 +00:00
return UPDATE_SUCCESS;
2021-12-03 03:01:39 +00:00
}
2021-12-02 23:02:31 +00:00
return UPDATE_FAILED;
}
2021-12-03 03:01:39 +00:00
}