You are here

function invite_update_7200 in Invite 7.2

add primary identifier (iid)

File

./invite.install, line 429
Installation file for invite module.

Code

function invite_update_7200() {
  $spec = array(
    'description' => 'The primary identifier for a invite.',
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
  );
  $new_keys = array(
    'primary key' => array(
      'invite' => 'iid',
    ),
  );
  if (!db_field_exists('invite', 'iid')) {
    db_add_field('invite', 'iid', $spec, $new_keys);
  }
}