aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1180.php
blob: f02f4623199f108c3d4a86ee30ac219dca75c639 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

namespace Zotlabs\Update;

class _1180 {
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;
}


}