aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1163.php
blob: 376447aeae57d21596a7254055728e543b985dd9 (plain) (tree)





















                                                                                                  
<?php

namespace Zotlabs\Update;

class _1163 {
function run() {

	if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
		$r1 = q("alter table channel add channel_moved text not null default '' ");
		$r2 = q("create index \"channel_channel_moved\" on channel (\"channel_moved\") ");
	} 
	else {
		$r1 = q("alter table channel add channel_moved char(255) not null default '' ");
		$r2 = q("alter table channel add index ( channel_moved ) ");
	}
    if($r1 && $r2)
        return UPDATE_SUCCESS;
    return UPDATE_FAILED;
}


}