function redhen_contact_update_7001 in RedHen CRM 7
Adding middle name field.
File
- modules/
redhen_contact/ redhen_contact.install, line 316 - Schema and installation hooks for redhen_contact module.
Code
function redhen_contact_update_7001() {
$schema = redhen_contact_schema();
$field_name = 'middle_name';
// Add middle_name to the main table.
$table_name = 'redhen_contact';
$spec = $schema[$table_name]['fields'][$field_name];
db_add_field($table_name, $field_name, $spec);
// Add middle_name to the revision table.
$table_name = 'redhen_contact_revision';
$spec = $schema[$table_name]['fields'][$field_name];
db_add_field($table_name, $field_name, $spec);
}