You are here

function workbench_email_update_7003 in Workbench Email 7

Same name and namespace in other branches
  1. 7.3 workbench_email.install \workbench_email_update_7003()

Adds the wid field properly.

File

./workbench_email.install, line 117
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',
      ),
    ));
  }
}