You are here

function signup_update_6002 in Signup 7

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

Add an 'attended' field to the {signup_log} table.

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

File

./signup.install, line 270

Code

function signup_update_6002() {
  $ret = array();
  $field = array(
    'type' => 'int',
    'size' => 'tiny',
  );
  db_add_field('signup_log', 'attended', $field);

  // hook_update_N() no longer returns a $ret array. Instead, return
  // nothing or a translated string indicating the update ran successfully.
  // See http://drupal.org/node/224333#update_sql.
  return t('TODO Add a descriptive string here to show in the UI.');
}