Add missing mount_id index

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-11-27 12:53:51 +01:00
parent fe80a65c3e
commit 76addfa44c
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

View File

@ -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')) {