You are here

function webform_update_7316 in Webform 7.3

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

Add additional columns for total submission limit.

File

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

Code

function webform_update_7316() {
  if (!db_field_exists('webform', 'total_submit_limit')) {
    db_add_field('webform', 'total_submit_limit', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => -1,
    ));
  }
  if (!db_field_exists('webform', 'total_submit_interval')) {
    db_add_field('webform', 'total_submit_interval', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => -1,
    ));
  }
}