function userpoints_update_6011 in User Points 6
File
- ./userpoints.install, line 262
Code
function userpoints_update_6011() {
$ret = array();
db_add_field($ret, 'userpoints_txn', 'changed', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Effective timestamp of last action on this transaction, for tracking purposes.',
));
db_add_index($ret, 'userpoints_txn', 'changed', array(
'changed',
));
$ret[] = update_sql("UPDATE {userpoints_txn} SET changed = time_stamp");
return $ret;
}