You are here

function webform_update_7408 in Webform 7.4

Rename the "mandatory" column to "required".

File

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

Code

function webform_update_7408() {
  $spec = array(
    'description' => 'Boolean flag for if this component is required.',
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  );
  if (!db_field_exists('webform_component', 'required')) {
    db_change_field('webform_component', 'mandatory', 'required', $spec);
  }
}