function votingapi_update_7203 in Voting API 7.2
Fix default values for entity_type columns.
File
- ./
votingapi.install, line 162 - Installation file for VotingAPI module.
Code
function votingapi_update_7203() {
db_change_field('votingapi_vote', 'entity_type', 'entity_type', array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => 'node',
));
db_change_field('votingapi_cache', 'entity_type', 'entity_type', array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => 'node',
));
}