You are here

function workbench_email_update_7004 in Workbench Email 7

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

Fixes issue with NULL constraint on subject / message fields.

File

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

Code

function workbench_email_update_7004() {
  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(
    'description' => 'The message of the email',
    'type' => 'text',
    'not null' => FALSE,
    'size' => 'big',
    'translatable' => TRUE,
  ));
  db_drop_table('workbench_email_transitions');
}