function votingapi_update_9 in Voting API 6.2
Same name and namespace in other branches
- 5 votingapi.install \votingapi_update_9()
- 6 votingapi.install \votingapi_update_9()
File
- ./
votingapi.install, line 243 - Installation file for VotingAPI module.
Code
function votingapi_update_9() {
$ret = array();
db_add_column($ret, 'votingapi_cache', 'timestamp', 'int', array(
'length' => 11,
'default' => NULL,
));
$ret[] = update_sql("UPDATE {votingapi_cache} SET timestamp = " . time() . " WHERE timestamp IS NULL;");
return $ret;
}