aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-28 10:21:22 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-28 10:21:55 +0100
commit551eea05ed802b79de29e6b488f691fb8887d0d5 (patch)
treed9a1214fe0589ce54a4437f5cf263892aee4cf89
parent90c82e4394240750333358dfad95c3745d7ea6ef (diff)
downloadvolse-hubzilla-551eea05ed802b79de29e6b488f691fb8887d0d5.tar.gz
volse-hubzilla-551eea05ed802b79de29e6b488f691fb8887d0d5.tar.bz2
volse-hubzilla-551eea05ed802b79de29e6b488f691fb8887d0d5.zip
missed one index in the last update
-rw-r--r--Zotlabs/Update/_1206.php24
-rwxr-xr-xboot.php2
-rw-r--r--install/schema_mysql.sql1
3 files changed, 26 insertions, 1 deletions
diff --git a/Zotlabs/Update/_1206.php b/Zotlabs/Update/_1206.php
new file mode 100644
index 000000000..bb2000aad
--- /dev/null
+++ b/Zotlabs/Update/_1206.php
@@ -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;
+ }
+
+ }
+
+}
diff --git a/boot.php b/boot.php
index 0c3db1531..057e155ef 100755
--- a/boot.php
+++ b/boot.php
@@ -53,7 +53,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '3.2RC' );
define ( 'ZOT_REVISION', '1.3' );
-define ( 'DB_UPDATE_VERSION', 1205 );
+define ( 'DB_UPDATE_VERSION', 1206 );
define ( 'PROJECT_BASE', __DIR__ );
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index 76e6032fc..5cd04467d 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -658,6 +658,7 @@ CREATE TABLE IF NOT EXISTS `item` (
KEY `uid_item_starred` (`uid`, `item_starred`),
KEY `uid_item_retained` (`uid`, `item_retained`),
KEY `uid_item_private` (`uid`, `item_private`),
+ KEY `uid_resource_type` (`uid`, `resource_type`),
KEY `aid` (`aid`),
KEY `owner_xchan` (`owner_xchan`),
KEY `author_xchan` (`author_xchan`),