You are here

function registration_update_7106 in Entity Registration 7.2

Same name and namespace in other branches
  1. 8 registration.install \registration_update_7106()
  2. 7 registration.install \registration_update_7106()

Add the new default_state field to the registration_type table

File

./registration.install, line 627
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.',
    ));
  }
}