function votingapi_update_2 in Voting API 6
Same name and namespace in other branches
- 5 votingapi.install \votingapi_update_2()
- 6.2 votingapi.install \votingapi_update_2()
Value fields changed to signed floats.
File
- ./
votingapi.install, line 18
Code
function votingapi_update_2() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {votingapi_cache} CHANGE value value float(10) default NULL");
$ret[] = update_sql("ALTER TABLE {votingapi_vote} CHANGE value value float(10) default NULL");
break;
}
return $ret;
}