You are here

function userpoints_update_4 in User Points 5

Same name and namespace in other branches
  1. 5.3 userpoints.install \userpoints_update_4()
  2. 5.2 userpoints.install \userpoints_update_4()
  3. 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;
}