You are here

function invite_update_6200 in Invite 6.2

add primary identifier (iid)

File

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

Code

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