You are here

function signup_update_6003 in Signup 7

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

Add the 'count_towards_limit' field to the {signup_log} table.

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

File

./signup.install, line 288

Code

function signup_update_6003() {
  $ret = array();
  $field = array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 1,
  );
  db_add_field('signup_log', 'count_towards_limit', $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.');
}