Merge pull request #31669 from nextcloud/backport/31620/stable22

[stable22] do not forget DB table prefix with truncate query
This commit is contained in:
blizzz 2022-03-23 13:23:41 +01:00 committed by GitHub
commit 1e2af98a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);
}
}