You are here

function webform_update_7305 in Webform 7.3

Same name and namespace in other branches
  1. 7.4 webform.install \webform_update_7305()

Set additional_validate and additional_submit columns to allow NULL.

File

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

Code

function webform_update_7305() {
  if (db_field_exists('webform', 'additional_validate')) {
    db_change_field('webform', 'additional_validate', 'additional_validate', array(
      'type' => 'text',
      'not null' => FALSE,
    ));
    db_change_field('webform', 'additional_submit', 'additional_submit', array(
      'type' => 'text',
      'not null' => FALSE,
    ));
  }
}