You are here

function webform_update_6306 in Webform 6.3

Add the ability to save as draft.

File

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

Code

function webform_update_6306() {
  $ret = array();
  db_add_field($ret, 'webform', 'allow_draft', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field($ret, 'webform_submissions', 'is_draft', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}