You are here

function webform_update_6303 in Webform 6.3

Add the submit_notice field and update all existing webforms to the 2.x previous submissions notice default.

File

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

Code

function webform_update_6303() {
  $ret = array();
  db_add_field($ret, 'webform', 'submit_notice', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  ));
  $ret[] = update_sql("UPDATE {webform} SET submit_notice = 1 WHERE submit_notice = 0");
  return $ret;
}