You are here

function webform_update_7302 in Webform 7.4

Same name and namespace in other branches
  1. 7.3 webform.install \webform_update_7302()

Add columns for e-mail HTML and attachment settings.

File

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

Code

function webform_update_7302() {
  if (!db_field_exists('webform_emails', 'html')) {
    db_add_field('webform_emails', 'html', array(
      'type' => 'int',
      'size' => 'tiny',
      'unsigned' => TRUE,
      'default' => 0,
      'not null' => TRUE,
    ));
    db_add_field('webform_emails', 'attachments', array(
      'type' => 'int',
      'size' => 'tiny',
      'unsigned' => TRUE,
      'default' => 0,
      'not null' => TRUE,
    ));
  }
}