You are here

function webform_civicrm_update_6201 in Webform CiviCRM Integration 7.2

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

Add column for new_contact_source to webform_civicrm_forms table.

File

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

Code

function webform_civicrm_update_6201() {
  $field = array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
    'description' => 'Source label for newly created contacts',
  );
  db_add_field('webform_civicrm_forms', 'new_contact_source', $field);
}