function workbench_email_update_7003 in Workbench Email 7.3
Same name and namespace in other branches
- 7 workbench_email.install \workbench_email_update_7003()
Implements hook_update_N().
Adds the wid field properly.
File
- ./
workbench_email.install, line 197 - Install file for the Workbench Email module.
Code
function workbench_email_update_7003() {
if (!db_field_exists('workbench_emails', 'wid')) {
// Add the wid field to the 'workbench_emails' table.
$field_definition = array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'An auto increment id',
);
db_add_field('workbench_emails', 'wid', $field_definition, array(
'primary key' => array(
'wid',
),
));
}
}