]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(db): no hardcoded table prefix is expected 39393/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 13 Jul 2023 21:34:39 +0000 (23:34 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Fri, 14 Jul 2023 11:47:10 +0000 (11:47 +0000)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
core/Command/Db/AddMissingIndices.php

index 452bcbad5dc05c3a6e6f26460cb3c718e643fd78..f0b4c14e15c37d10abf7099543ca91931047d1ca 100644 (file)
@@ -476,8 +476,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>');