aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1002.php
blob: 1f42449c666f495d7f53dcce6c6f2fcc47c3b57a (plain) (tree)



















                                                                                                     
<?php

namespace Zotlabs\Update;

class _1002 {
function run() {
	$r = q("ALTER TABLE `event` CHANGE `account` `aid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
	$r2 = q("alter table `event` drop index `account`, add index (`aid`)");

	q("drop table contact");
	q("drop table deliverq");

	if($r && $r2)
		return UPDATE_SUCCESS;
	return UPDATE_FAILED;
}



}