function userpoints_update_2 in User Points 6
Same name and namespace in other branches
- 5.3 userpoints.install \userpoints_update_2()
- 5 userpoints.install \userpoints_update_2()
- 5.2 userpoints.install \userpoints_update_2()
File
- ./
userpoints.install, line 191
Code
function userpoints_update_2() {
$ret = array();
db_add_field($ret, 'userpoints', 'max_points', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'length' => 10,
));
db_change_field($ret, 'userpoints', 'points', 'points', array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'length' => 10,
));
return $ret;
}