aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1192.php
blob: f2445da05772ecce661bf115d7d8495faeddd5c4 (plain) (tree)




















                                                                         
<?php

namespace Zotlabs\Update;

class _1192 {
function run() {

	if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
		$r1 = q("CREATE INDEX item_obj_type ON item (obj_type)");
	}
	else {
		$r1 = q("ALTER TABLE item ADD INDEX (obj_type)");
	}

	if($r1)
		return UPDATE_SUCCESS;
	return UPDATE_FAILED;
}


}