]> source.dussan.org Git - nextcloud-server.git/commitdiff
do not forget DB table prefix with truncate query 31620/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 18 Mar 2022 15:59:46 +0000 (16:59 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 18 Mar 2022 15:59:46 +0000 (16:59 +0100)
- as used in LDAP's AbstractMapping::clear() method
- and in Comment's ManagerTest::setUp()
- fixes a DB Exception with Oracle

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Migration/Version1130Date20211102154716.php

index 3f590df7fa5e372bb3dabb15135cd88eac42cf96..024c5801582fd894f9e6e640ff0e4faf73fb390c 100644 (file)
@@ -67,7 +67,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
                        // ldap_group_mapping_backup table. No need to recreate, but it
                        // should be empty.
                        // TRUNCATE is not available from Query Builder, but faster than DELETE FROM.
-                       $sql = $this->dbc->getDatabasePlatform()->getTruncateTableSQL('ldap_group_mapping_backup', false);
+                       $sql = $this->dbc->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*ldap_group_mapping_backup`', false);
                        $this->dbc->executeStatement($sql);
                }
        }