You are here

function webform_validation_update_7105 in Webform Validation 7

Add a weight field to webform_validation rules, so they can be sorted.

File

./webform_validation.install, line 211
Webform_validation installation file.

Code

function webform_validation_update_7105() {
  $spec = array(
    'description' => 'Weight of the rule order.',
    'type' => 'int',
    'not null' => TRUE,
    'unsigned' => FALSE,
    'default' => 0,
  );
  db_add_field('webform_validation_rule', 'weight', $spec);
}