|
|
|
|
@ -465,6 +465,14 @@ class AddMissingIndices extends Command { |
|
|
|
|
$updated = true; |
|
|
|
|
$output->writeln('<info>oc_mounts table updated successfully.</info>'); |
|
|
|
|
} |
|
|
|
|
if (!$table->hasIndex('mounts_user_root_path_index')) { |
|
|
|
|
$output->writeln('<info>Adding mounts_user_root_path_index index to the oc_mounts table, this can take some time...</info>'); |
|
|
|
|
|
|
|
|
|
$table->addIndex(['user_id', 'root_id', 'mount_point'], 'mounts_user_root_path_index', [], ['lengths' => [null, null, 128]]); |
|
|
|
|
$this->connection->migrateToSchema($schema->getWrappedSchema()); |
|
|
|
|
$updated = true; |
|
|
|
|
$output->writeln('<info>oc_mounts table updated successfully.</info>'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!$updated) { |
|
|
|
|
|