You are here

function signup_update_6001 in Signup 6

Same name and namespace in other branches
  1. 6.2 signup.install \signup_update_6001()
  2. 7 signup.install \signup_update_6001()

Add unique id column to signup_log as the primary key.

http://drupal.org/node/341382 for more infomation.

File

./signup.install, line 447

Code

function signup_update_6001() {
  $ret = array();
  $field = array(
    'type' => 'serial',
    'size' => 'normal',
    'unsigned' => TRUE,
    'not null' => TRUE,
  );
  db_add_field($ret, 'signup_log', 'sid', $field, array(
    'primary key' => array(
      'sid',
    ),
  ));
  return $ret;
}