function signup_update_6001 in Signup 7
Same name and namespace in other branches
- 6.2 signup.install \signup_update_6001()
- 6 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 250
Code
function signup_update_6001() {
$ret = array();
$field = array(
'type' => 'serial',
'size' => 'normal',
'unsigned' => TRUE,
'not null' => TRUE,
);
db_add_field('signup_log', 'sid', $field, array(
'primary key' => array(
'sid',
),
));
// 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.');
}