missed one index in the last update
This commit is contained in:
parent
924c8db712
commit
6593dff9f5
24
Zotlabs/Update/_1206.php
Normal file
24
Zotlabs/Update/_1206.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
2
boot.php
2
boot.php
@ -53,7 +53,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
|
|||||||
define ( 'STD_VERSION', '3.3' );
|
define ( 'STD_VERSION', '3.3' );
|
||||||
define ( 'ZOT_REVISION', '1.3' );
|
define ( 'ZOT_REVISION', '1.3' );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1205 );
|
define ( 'DB_UPDATE_VERSION', 1206 );
|
||||||
|
|
||||||
define ( 'PROJECT_BASE', __DIR__ );
|
define ( 'PROJECT_BASE', __DIR__ );
|
||||||
|
|
||||||
|
@ -658,6 +658,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
|||||||
KEY `uid_item_starred` (`uid`, `item_starred`),
|
KEY `uid_item_starred` (`uid`, `item_starred`),
|
||||||
KEY `uid_item_retained` (`uid`, `item_retained`),
|
KEY `uid_item_retained` (`uid`, `item_retained`),
|
||||||
KEY `uid_item_private` (`uid`, `item_private`),
|
KEY `uid_item_private` (`uid`, `item_private`),
|
||||||
|
KEY `uid_resource_type` (`uid`, `resource_type`),
|
||||||
KEY `aid` (`aid`),
|
KEY `aid` (`aid`),
|
||||||
KEY `owner_xchan` (`owner_xchan`),
|
KEY `owner_xchan` (`owner_xchan`),
|
||||||
KEY `author_xchan` (`author_xchan`),
|
KEY `author_xchan` (`author_xchan`),
|
||||||
|
Reference in New Issue
Block a user