mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #31669 from nextcloud/backport/31620/stable22
[stable22] do not forget DB table prefix with truncate query
This commit is contained in:
commit
1e2af98a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue