You are here

function webform_update_6323 in Webform 6.3

Add column for webform status (open or closed).

File

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

Code

function webform_update_6323() {
  $ret = array();
  if (!db_column_exists('webform', 'status')) {
    db_add_field($ret, 'webform', 'status', array(
      'type' => 'int',
      'size' => 'tiny',
      'not null' => TRUE,
      'default' => 1,
    ));
  }
  return $ret;
}