summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-03-22 10:46:20 +0100
committerGitHub <noreply@github.com>2022-03-22 10:46:20 +0100
commit6fa51be0deaebde10c5382739c1413cec183860a (patch)
tree48b4c474e17a37ef36597ff6f12626727e7c5c9e
parenta47fd94cb8056f885b63e9ad2fd009ff049c4ed7 (diff)
parent4656753df025b9633c46aac666b18c23e31209dc (diff)
downloadnextcloud-server-6fa51be0deaebde10c5382739c1413cec183860a.tar.gz
nextcloud-server-6fa51be0deaebde10c5382739c1413cec183860a.zip
Merge pull request #31620 from nextcloud/fix/noid/truncate-oracle
do not forget DB table prefix with truncate query
-rw-r--r--apps/user_ldap/lib/Migration/Version1130Date20211102154716.php2
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 3f590df7fa5..024c5801582 100644
--- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
+++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
@@ -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);
}
}