Skip to content

Commit f7b067d

Browse files
authored
Fix upgrade.php update SQL
1 parent c9fa7bb commit f7b067d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

db/upgrade.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,11 @@ function xmldb_zoom_upgrade($oldversion) {
10271027
if ($oldversion < 2025062600) {
10281028
// Define the SQL query to fix the inconsistent casing in the customlang stringid.
10291029
$sql = "UPDATE {tool_customlang} tc
1030-
JOIN {tool_customlang_components} tcc ON tc.componentid = tcc.id
1031-
SET tc.stringid = :newstringid
1032-
WHERE tcc.name = :componentname
1033-
AND tc.stringid = :oldstringid";
1030+
SET stringid = :newstringid
1031+
WHERE tc.stringid = :oldstringid
1032+
AND tc.componentid in (SELECT tcc.id
1033+
FROM {tool_customlang_components} tcc
1034+
WHERE tcc.name = :componentname)";
10341035

10351036
$params = [
10361037
'newstringid' => 'calendardescriptionurl',

0 commit comments

Comments
 (0)