You are here

function webform_update_6330 in Webform 6.3

Add additional columns for total submission limit.

File

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

Code

function webform_update_6330() {
  $ret = array();
  if (!db_column_exists('webform', 'total_submit_limit')) {
    db_add_field($ret, 'webform', 'total_submit_limit', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => -1,
    ));
  }
  if (!db_column_exists('webform', 'total_submit_interval')) {
    db_add_field($ret, 'webform', 'total_submit_interval', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => -1,
    ));
  }
  return $ret;
}