function user_update_7009 in Drupal 7
Converts fields that store serialized variables from text to blob.
Related topics
File
- modules/
user/ user.install, line 640 - Install, update and uninstall functions for the user module.
Code
function user_update_7009() {
$spec = array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'A serialized array of name value pairs that are related to the user. Any form values posted during user edit are stored and are loaded into the $user object during user_load(). Use of this field is discouraged and it will likely disappear in a future version of Drupal.',
);
db_change_field('users', 'data', 'data', $spec);
}