From 8ede3290ae2da4b04f451ff3d502f0ac60ac6585 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Mon, 21 Jan 2013 22:31:44 +0100
Subject: [PATCH] Cache: add database indexes for mimetype and mimepart

---
 db_structure.xml | 24 ++++++++++++++++++++++++
 lib/util.php     |  2 +-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/db_structure.xml b/db_structure.xml
index f1f02572819..479ee3259ff 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -258,6 +258,30 @@
 				</field>
 			</index>
 
+			<index>
+				<name>fs_storage_mimetype</name>
+				<field>
+					<name>storage</name>
+					<sorting>ascending</sorting>
+				</field>
+				<field>
+					<name>mimetype</name>
+					<sorting>ascending</sorting>
+				</field>
+			</index>
+
+			<index>
+				<name>fs_storage_mimepart</name>
+				<field>
+					<name>storage</name>
+					<sorting>ascending</sorting>
+				</field>
+				<field>
+					<name>mimepart</name>
+					<sorting>ascending</sorting>
+				</field>
+			</index>
+
 		</declaration>
 
 	</table>
diff --git a/lib/util.php b/lib/util.php
index 59566c9f4fb..f947ed9c178 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -74,7 +74,7 @@ class OC_Util {
 	 */
 	public static function getVersion() {
 		// hint: We only can count up. So the internal version number of ownCloud 4.5 will be 4.90.0. This is not visible to the user
-		return array(4,91,07);
+		return array(4,91,8);
 	}
 
 	/**
-- 
GitLab