Merge pull request #39380 from nextcloud/fix/39379/systag_by_tagid-not-created

fix(db): no hardcoded table prefix is expected
This commit is contained in:
Arthur Schiwon 2023-07-14 13:05:11 +02:00 committed by GitHub
commit 623dbf899a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,8 +473,8 @@ class AddMissingIndices extends Command {
}
$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>');