You are here

function registration_update_7105 in Entity Registration 7

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

Adds column to registration_state table for held property.

File

./registration.install, line 578
Schema and installation hooks for registration module.

Code

function registration_update_7105(&$sandbox) {
  if (!db_field_exists('registration_state', 'held')) {
    $spec = array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'size' => 'tiny',
      'description' => 'A flag showing held registration states.',
    );
    db_add_field('registration_state', 'held', $spec);
  }
}