diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-03-18 18:59:46 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-05-19 16:09:39 +0300 |
commit | 33ac5fc64084fe63d23116ff6e05b8bb67c4ff68 (patch) | |
tree | d870d1f0294bb2d3cbb4a87e5abed3e295e3d99a | |
parent | 4ccacc7f9789115c81e2386bbc833652b7c1831f (diff) |
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>
-rw-r--r-- | apps/user_ldap/lib/Migration/Version1130Date20211102154716.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php index 9ace5b20070..3cdf9a79423 100644 --- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php +++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php @@ -69,7 +69,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->executeUpdate($sql); } } |