You are here

function webform_update_7306 in Webform 7.4

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

Add column for webform status (open or closed).

File

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

Code

function webform_update_7306() {
  if (!db_field_exists('webform', 'status')) {
    db_add_field('webform', 'status', array(
      'type' => 'int',
      'size' => 'tiny',
      'not null' => TRUE,
      'default' => 1,
    ));
  }
}