diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-08 06:52:38 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-08 06:52:38 +0000 |
commit | 757c567e557c9360dfd7f50ddd914ca1c3634807 (patch) | |
tree | d0994fe4162eb621cd03efd66289fa1f79bb33b7 | |
parent | daa59856c3642c192be43104ff945f3182d026d9 (diff) | |
download | brdo-757c567e557c9360dfd7f50ddd914ca1c3634807.tar.gz brdo-757c567e557c9360dfd7f50ddd914ca1c3634807.tar.bz2 |
#654014 by moshe weitzman: Fix broken update functions.
-rw-r--r-- | modules/block/block.install | 2 | ||||
-rw-r--r-- | modules/comment/comment.install | 2 | ||||
-rw-r--r-- | modules/filter/filter.install | 10 | ||||
-rw-r--r-- | modules/user/user.install | 10 |
4 files changed, 12 insertions, 12 deletions
diff --git a/modules/block/block.install b/modules/block/block.install index 260d2e1bb..880756fc4 100644 --- a/modules/block/block.install +++ b/modules/block/block.install @@ -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(); } diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 44087ea43..9a571c159 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -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(); } diff --git a/modules/filter/filter.install b/modules/filter/filter.install index 6371be7e2..e73149bca 100644 --- a/modules/filter/filter.install +++ b/modules/filter/filter.install @@ -194,11 +194,11 @@ function filter_update_7003() { // Loop through each filter and make changes to the core filter table. foreach ($renamed_deltas as $module => $deltas) { foreach ($deltas as $old_delta => $new_delta) { - db_update('filter') - ->fields(array('name', $new_delta)) - ->condition('module', $module) - ->condition('name', $old_delta) - ->execute(); + db_update('filter') + ->fields(array('name' => $new_delta)) + ->condition('module', $module) + ->condition('name', $old_delta) + ->execute(); } } } diff --git a/modules/user/user.install b/modules/user/user.install index 46be8ff1d..c93cf0e9e 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -352,15 +352,15 @@ function user_update_7002(&$sandbox) { } } if ($timezone) { - db_update('users') - ->fields(array('timezone' => $timezone)) - ->condition('uid', $account->uid) - ->execute(); + db_update('users') + ->fields(array('timezone' => $timezone)) + ->condition('uid', $account->uid) + ->execute(); } else { $sandbox['user_not_migrated']++; db_update('users') - ->fields(array('timezone', NULL)) + ->fields(array('timezone' => NULL)) ->condition('uid', $account->uid) ->execute(); } |