blob: 683ea980238c66c21bb377b886256652a9d01f97 (
plain) (
tree)
|
|
<?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;
}
}
|