Skip to content

Commit 23148e7

Browse files
authored
Merge pull request #26451 from nextcloud/revert-26326-backport/26070/stable21
Revert "[stable21] add a prefix index to filecache.path"
2 parents 2e13dc2 + c12f548 commit 23148e7

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

core/Application.php

-4
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ function (GenericEvent $event) use ($container) {
112112
if (!$table->hasIndex('fs_size')) {
113113
$subject->addHintForMissingSubject($table->getName(), 'fs_size');
114114
}
115-
116-
if (!$table->hasIndex('fs_path_prefix')) {
117-
$subject->addHintForMissingSubject($table->getName(), 'fs_path_prefix');
118-
}
119115
}
120116

121117
if ($schema->hasTable('twofactor_providers')) {

core/Command/Db/AddMissingIndices.php

-7
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,6 @@ private function addCoreIndexes(OutputInterface $output) {
144144
$updated = true;
145145
$output->writeln('<info>Filecache table updated successfully.</info>');
146146
}
147-
if (!$table->hasIndex('fs_path_prefix')) {
148-
$output->writeln('<info>Adding additional path index to the filecache table, this can take some time...</info>');
149-
$table->addIndex(['size'], 'fs_path_prefix', [], ["lengths" => [128]]);
150-
$this->connection->migrateToSchema($schema->getWrappedSchema());
151-
$updated = true;
152-
$output->writeln('<info>Filecache table updated successfully.</info>');
153-
}
154147
}
155148

156149
$output->writeln('<info>Check indices of the twofactor_providers table.</info>');

core/Migrations/Version13000Date20170718121200.php

-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
262262
$table->addIndex(['storage', 'size', 'fileid'], 'fs_storage_size');
263263
$table->addIndex(['mtime'], 'fs_mtime');
264264
$table->addIndex(['size'], 'fs_size');
265-
$table->addIndex(['path'], 'fs_path_prefix', [], ["lengths" => [128]]);
266265
}
267266

268267
if (!$schema->hasTable('group_user')) {

0 commit comments

Comments
 (0)