function user_stats_update_6102 in User Stats 6
Implementation of hook_update_N(). Expands the width of the field table to 40.
File
- ./
user_stats.install, line 233 - Install hooks for the User Stats module.
Code
function user_stats_update_6102(&$sandbox) {
$ip_address = array(
'type' => 'varchar',
'length' => 40,
'not null' => TRUE,
'default' => '',
'description' => "The user's IP address.",
);
$ret = array();
db_change_field($ret, 'user_stats_ips', 'ip_address', 'ip_address', $ip_address);
return $ret;
}