mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
do not forget DB table prefix with truncate query
- 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>
This commit is contained in:
parent
75158f3985
commit
6a7353a3b6
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