function webform_civicrm_update_7400 in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 webform_civicrm.install \webform_civicrm_update_7400()
Add column for contribution_id to webform_civicrm_submissions table.
File
- ./
webform_civicrm.install, line 716 - Webform CiviCRM module's install, uninstall and upgrade code.
Code
function webform_civicrm_update_7400() {
$field = [
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'FK to {civicrm_contribution} id',
];
db_add_field('webform_civicrm_submissions', 'contribution_id', $field);
}