]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(db): no hardcoded table prefix is expected 39380/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 13 Jul 2023 21:34:39 +0000 (23:34 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 13 Jul 2023 21:34:39 +0000 (23:34 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
core/Command/Db/AddMissingIndices.php

index 6210986791350756bfc4b1cbde4b47250c6f29f4..10e59d298bb66f1962affd213121261db42dcf5f 100644 (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>');