function redhen_org_update_7007 in RedHen CRM 7
Remove the redhen_org machine name and related export columns.
File
- modules/
redhen_org/ redhen_org.install, line 500 - Schema and installation hooks for redhen_org module.
Code
function redhen_org_update_7007() {
db_drop_field('redhen_org', 'name');
db_drop_field('redhen_org', 'status');
db_drop_field('redhen_org', 'module');
db_drop_field('redhen_org_revision', 'name');
// Since we're removing the machine name, add an index on the label so we can
// use it for querying orgs by label.
db_add_index('redhen_org', 'redhen_org_label', array(
'label',
));
db_add_index('redhen_org_revision', 'redhen_org_revision_label', array(
'label',
));
entity_info_cache_clear();
}