You are here

function userpoints_update_3 in User Points 5.2

Same name and namespace in other branches
  1. 5.3 userpoints.install \userpoints_update_3()
  2. 5 userpoints.install \userpoints_update_3()
  3. 6 userpoints.install \userpoints_update_3()

File

./userpoints.install, line 85

Code

function userpoints_update_3() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':

      // Add the description column
      $ret[] = update_sql("ALTER TABLE {userpoints_txn} ADD description TEXT AFTER event");
      break;
  }
  return $ret;
}