diff options
Diffstat (limited to 'core/Command/Db/AddMissingIndices.php')
-rw-r--r-- | core/Command/Db/AddMissingIndices.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Command/Db/AddMissingIndices.php b/core/Command/Db/AddMissingIndices.php index b30fa43ab39..5d78d360b49 100644 --- a/core/Command/Db/AddMissingIndices.php +++ b/core/Command/Db/AddMissingIndices.php @@ -100,6 +100,17 @@ class AddMissingIndices extends Command { } } + if ($schema->hasTable('filecache')) { + $table = $schema->getTable('filecache'); + if (!$table->hasIndex('fs_mtime')) { + $output->writeln('<info>Adding additional mtime index to the filecache table, this can take some time...</info>'); + $table->addIndex(['mtime'], 'fs_mtime'); + $this->connection->migrateToSchema($schema->getWrappedSchema()); + $updated = true; + $output->writeln('<info>Filecache table updated successfully.</info>'); + } + } + if (!$updated) { $output->writeln('<info>Done.</info>'); } |