function registration_update_7106 in Entity Registration 7
Same name and namespace in other branches
- 8 registration.install \registration_update_7106()
- 7.2 registration.install \registration_update_7106()
Add the new default_state field to the registration_type table.
File
- ./
registration.install, line 596 - Schema and installation hooks for registration module.
Code
function registration_update_7106(&$sandbox) {
if (!db_field_exists('registration_type', 'default_state')) {
db_add_field('registration_type', 'default_state', array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
'description' => 'The machine name of the default registration state.',
));
}
}