You are here

function webform_update_7430 in Webform 7.4

Add a column to the emails table to allow disabling.

File

./webform.install, line 2364
Webform module install/schema hooks.

Code

function webform_update_7430() {

  // Add status column to webform_emails.
  if (!db_field_exists('webform_emails', 'status')) {
    $spec = array(
      'description' => 'Whether this email is enabled.',
      'type' => 'int',
      'unsigned' => TRUE,
      'size' => 'tiny',
      'not null' => TRUE,
      'default' => 1,
    );
    db_add_field('webform_emails', 'status', $spec);
  }
  return t('Webform emails may now be disabled.');
}