You are here

function registration_update_7106 in Entity Registration 8

Same name and namespace in other branches
  1. 7.2 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 569
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.',
    ));
  }
}