summaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-27 12:53:51 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-09 12:13:34 +0100
commit76addfa44c4a7e8445ae91ff894ea1249525540e (patch)
treeb7a40ddf39f685a12db3098c91290b595d9899f6 /core/Migrations
parentfe80a65c3ed3eb3501ad58310402ecc6cef1c8b6 (diff)
downloadnextcloud-server-76addfa44c4a7e8445ae91ff894ea1249525540e.tar.gz
nextcloud-server-76addfa44c4a7e8445ae91ff894ea1249525540e.zip
Add missing mount_id index
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Migrations')
-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')) {