aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1002.php
blob: 1f42449c666f495d7f53dcce6c6f2fcc47c3b57a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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;
}



}