function flag_update_7302 in Flag 7.3
Rename database columns on the {flag} table.
File
- ./
flag.install, line 473 - Flag module install/schema/update hooks.
Code
function flag_update_7302() {
// No keys or indexes are affected.
// Change field 'content_type' to 'entity_type'.
db_change_field('flag', 'content_type', 'entity_type', array(
'description' => 'The flag type, such as one of "node", "comment", or "user".',
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'default' => '',
));
}