aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1200.php
blob: 9f7bfb152e8f067ab4d756298742e8438d152af7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                
 




                                              
                                      

         

 
 
<?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;
	}
	else {
		return UPDATE_SUCCESS;
	}

}

}