function votingapi_update_6 in Voting API 6
Same name and namespace in other branches
- 5 votingapi.install \votingapi_update_6()
- 6.2 votingapi.install \votingapi_update_6()
File
- ./
votingapi.install, line 132
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;
}