function userpoints_update_4 in User Points 5
Same name and namespace in other branches
- 5.3 userpoints.install \userpoints_update_4()
- 5.2 userpoints.install \userpoints_update_4()
- 6 userpoints.install \userpoints_update_4()
File
- ./
userpoints.install, line 97
Code
function userpoints_update_4() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
// Add the description column
$ret[] = update_sql("ALTER TABLE {userpoints_txn} CHANGE event event VARCHAR(32)");
$ret[] = update_sql("ALTER TABLE {userpoints_txn} CHANGE status status INTEGER NOT NULL DEFAULT '0' AFTER time_stamp");
break;
}
return $ret;
}