You are here

function workbench_email_update_7002 in Workbench Email 7.3

Same name and namespace in other branches
  1. 7 workbench_email.install \workbench_email_update_7002()

Implements hook_update_N().

Removes the not null constraint from the fields subject and message within workbench_emails. Also, removes the workbench_email_transitions table from the schema.

File

./workbench_email.install, line 170
Install file for the Workbench Email module.

Code

function workbench_email_update_7002() {
  db_change_field('workbench_emails', 'subject', 'subject', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => FALSE,
    'description' => 'The subject of the email',
  ));
  db_change_field('workbench_emails', 'message', 'message', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => FALSE,
    'description' => 'The message of the email',
  ));
  db_drop_table('workbench_email_transitions');
}