You are here

function votingapi_update_6 in Voting API 5

Same name and namespace in other branches
  1. 6.2 votingapi.install \votingapi_update_6()
  2. 6 votingapi.install \votingapi_update_6()

File

./votingapi.install, line 197

Code

function votingapi_update_6() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {votingapi_action_condition} ADD COLUMN name varchar(128) NOT NULL;");
      $ret[] = update_sql("ALTER TABLE {votingapi_action_condition} CHANGE value data varchar(255)");
      $ret[] = update_sql("ALTER TABLE {votingapi_action_set} ADD COLUMN description varchar(255) NOT NULL;");
      break;
  }
  return $ret;
}