You are here

function redhen_org_update_7004 in RedHen CRM 7

Add indexes for foreign keys.

File

modules/redhen_org/redhen_org.install, line 394
Schema and installation hooks for redhen_org module.

Code

function redhen_org_update_7004() {
  db_add_index('redhen_org', 'redhen_org_revision', array(
    'revision_id',
  ));
  db_add_index('redhen_org', 'redhen_org_author', array(
    'author_uid',
  ));
  db_add_index('redhen_org', 'redhen_org_primary_contact_id', array(
    'primary_contact_id',
  ));
  db_add_index('redhen_org_revision', 'revision_redhen_org', array(
    'org_id',
  ));
  db_add_index('redhen_org_revision', 'redhen_org_revision_author', array(
    'author_uid',
  ));
  db_add_index('redhen_org_revision', 'redhen_org_revision_primary_contact_id', array(
    'primary_contact_id',
  ));
}