You are here

function feedback_update_5201 in Feedback 5.2

Add user agent column.

File

./feedback.install, line 77

Code

function feedback_update_5201() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {feedback} ADD useragent varchar(255) NOT NULL");
      break;
    case 'pgsql':
      db_add_column($ret, 'feedback', 'useragent', 'varchar(255)', array(
        'not null' => TRUE,
      ));
      break;
  }
  return $ret;
}