Skip to content

Commit

Permalink
Merge pull request #39380 from nextcloud/fix/39379/systag_by_tagid-no…
Browse files Browse the repository at this point in the history
…t-created

fix(db): no hardcoded table prefix is expected
  • Loading branch information
blizzz authored Jul 14, 2023
2 parents 99aefbd + e5160e0 commit 623dbf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Command/Db/AddMissingIndices.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ private function addCoreIndexes(OutputInterface $output, bool $dryRun): void {
}

$output->writeln('<info>Check indices of the oc_systemtag_object_mapping table.</info>');
if ($schema->hasTable('oc_systemtag_object_mapping')) {
$table = $schema->getTable('oc_systemtag_object_mapping');
if ($schema->hasTable('systemtag_object_mapping')) {
$table = $schema->getTable('systemtag_object_mapping');
if (!$table->hasIndex('systag_by_tagid')) {
$output->writeln('<info>Adding systag_by_tagid index to the oc_systemtag_object_mapping table, this can take some time...</info>');

Expand Down

0 comments on commit 623dbf8

Please sign in to comment.