summaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-07-19 17:30:41 +0200
committerRobin Appelman <robin@icewind.nl>2018-07-19 17:43:20 +0200
commit91d3e48ab30c7b195169edb1d07957c6b26f917f (patch)
tree1c026dd017b9b585653abdd0ff846ef708bcb99b /core/Migrations
parent596655fa1add88cc13eb8cf3a6e43950829d29be (diff)
downloadnextcloud-server-91d3e48ab30c7b195169edb1d07957c6b26f917f.tar.gz
nextcloud-server-91d3e48ab30c7b195169edb1d07957c6b26f917f.zip
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/Migrations')
-rw-r--r--core/Migrations/Version13000Date20170718121200.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php
index 05623e435c3..29687b8683f 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -215,6 +215,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
$table->addIndex(['storage', 'mimetype'], 'fs_storage_mimetype');
$table->addIndex(['storage', 'mimepart'], 'fs_storage_mimepart');
$table->addIndex(['storage', 'size', 'fileid'], 'fs_storage_size');
+ $table->addIndex(['mtime'], 'fs_mtime');
}
if (!$schema->hasTable('group_user')) {