You are here

function webform_update_7306 in Webform 7.3

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

Add column for webform status (open or closed).

File

./webform.install, line 573
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,
    ));
  }
}