aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1206.php
blob: 351d53ff63f161cf59f1836addc78b8ff58869d8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                   
                                                                                












                                                      
<?php

namespace Zotlabs\Update;

class _1206 {

	function run() {

		if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
			$r = q("ALTER TABLE item 
				ADD INDEX uid_resource_type (uid, resource_type)
			");

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

	}

}