You are here

function webform_civicrm_update_6202 in Webform CiviCRM Integration 7.2

Same name and namespace in other branches
  1. 6.2 webform_civicrm.install \webform_civicrm_update_6202()
  2. 7.5 webform_civicrm.install \webform_civicrm_update_6202()
  3. 7.3 webform_civicrm.install \webform_civicrm_update_6202()
  4. 7.4 webform_civicrm.install \webform_civicrm_update_6202()

Add column for contact_matching to webform_civicrm_forms table.

File

./webform_civicrm.install, line 295
Webform CiviCRM module's install, uninstall and upgrade code.

Code

function webform_civicrm_update_6202() {
  $field = array(
    'description' => 'How to match and autofill for contacts',
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 1,
  );
  db_add_field('webform_civicrm_forms', 'contact_matching', $field);
}