Skip to content
Snippets Groups Projects
Commit 757c567e authored by Angie Byron's avatar Angie Byron
Browse files

#654014 by moshe weitzman: Fix broken update functions.

parent daa59856
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -226,7 +226,7 @@ function block_install() {
*/
function block_update_7000() {
db_update('system')
->fields(array('weight', '-5'))
->fields(array('weight' => '-5'))
->condition('name', 'block')
->execute();
}
......
......@@ -73,7 +73,7 @@ function comment_update_7001() {
foreach ($changes as $old => $new) {
db_update('comments')
->fields(array('status', $new))
->fields(array('status' => $new))
->condition('status', $old)
->execute();
}
......
......@@ -195,7 +195,7 @@ function filter_update_7003() {
foreach ($renamed_deltas as $module => $deltas) {
foreach ($deltas as $old_delta => $new_delta) {
db_update('filter')
->fields(array('name', $new_delta))
->fields(array('name' => $new_delta))
->condition('module', $module)
->condition('name', $old_delta)
->execute();
......
......@@ -360,7 +360,7 @@ function user_update_7002(&$sandbox) {
else {
$sandbox['user_not_migrated']++;
db_update('users')
->fields(array('timezone', NULL))
->fields(array('timezone' => NULL))
->condition('uid', $account->uid)
->execute();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment