Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-07-19 18:30:41 +0300
committerRobin Appelman <robin@icewind.nl>2018-07-19 18:43:20 +0300
commit91d3e48ab30c7b195169edb1d07957c6b26f917f (patch)
tree1c026dd017b9b585653abdd0ff846ef708bcb99b /core/Application.php
parent596655fa1add88cc13eb8cf3a6e43950829d29be (diff)
Add filecache index on mtime
Gives searching by mtime and "recent" a proper index to use Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 400d86f5991..336538187d7 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -71,6 +71,14 @@ class Application extends App {
$subject->addHintForMissingSubject($table->getName(), 'parent_index');
}
}
+
+ if ($schema->hasTable('filecache')) {
+ $table = $schema->getTable('filecache');
+
+ if (!$table->hasIndex('fs_mtime')) {
+ $subject->addHintForMissingSubject($table->getName(), 'fs_mtime');
+ }
+ }
}
);
}