You are here

function userpoints_update_3 in User Points 5.3

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

File

./userpoints.install, line 119

Code

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

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