aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1200.php
blob: 00c7425931884264dd422082ee2b8375fd4705e6 (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 _1200 {
function run() {

	if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
		$r = q("ALTER TABLE item 
			DROP INDEX item_type,
			ADD INDEX uid_item_type (uid, item_type)
		");
	}

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

}