Add missing mount_id index
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1fe7836c8d
commit
7c9fcc434f
|
@ -122,6 +122,15 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
|
|||
$table->addIndex(['root_id'], 'mounts_root_index');
|
||||
$table->addIndex(['mount_id'], 'mounts_mount_id_index');
|
||||
$table->addUniqueIndex(['user_id', 'root_id'], 'mounts_user_root_index');
|
||||
} else {
|
||||
$table = $schema->getTable('mounts');
|
||||
$table->addColumn('mount_id', Types::BIGINT, [
|
||||
'notnull' => false,
|
||||
'length' => 20,
|
||||
]);
|
||||
if (!$table->hasIndex('mounts_mount_id_index')) {
|
||||
$table->addIndex(['mount_id'], 'mounts_mount_id_index');
|
||||
}
|
||||
}
|
||||
|
||||
if (!$schema->hasTable('mimetypes')) {
|
||||
|
|
Loading…
Reference in New Issue