Skip to content

Commit 0bfa644

Browse files
committed
Issue #121 Increase chunk from 100 to 1000.
1 parent 85f000f commit 0bfa644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/upgrade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function xmldb_cms_upgrade($oldversion) {
360360
WHERE mcc.component = 'mod_cms' AND mcd.valuetrust = 0";
361361
$records = $DB->get_records_sql($sql);
362362
$mcdids = array_keys($records);
363-
foreach (array_chunk($mcdids, 100) as $ids) {
363+
foreach (array_chunk($mcdids, 1000) as $ids) {
364364
[$sql, $params] = $DB->get_in_or_equal($ids);
365365
$sql = 'UPDATE {customfield_data} SET valuetrust = 1 WHERE id ' . $sql;
366366
$DB->execute($sql, $params);

0 commit comments

Comments
 (0)