aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1162.php
blob: 683ea980238c66c21bb377b886256652a9d01f97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Zotlabs\Update;

class _1162 {
function run() {
	$r1 = q("alter table iconfig add sharing int not null default '0' ");

	if(ACTIVE_DBTYPE == DBTYPE_POSTGRES)
		$r2 = q("create index \"iconfig_sharing\" on iconfig (\"sharing\") "); 
	else 
		$r2 = q("alter table iconfig add index ( sharing ) ");
    if($r1 && $r2)
        return UPDATE_SUCCESS;
    return UPDATE_FAILED;
}


}