summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Migrations/Version13000Date20170718121200.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php
index 481de74b21e..bc6534b6dcb 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -128,6 +128,9 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'notnull' => false,
'length' => 20,
]);
+ if (!$table->hasIndex('mounts_mount_id_index')) {
+ $table->addIndex(['mount_id'], 'mounts_mount_id_index');
+ }
}
if (!$schema->hasTable('mimetypes')) {