You are here

function redhen_engagement_update_7102 in RedHen CRM 7

Create indexes for foreign keys.

File

modules/redhen_engagement/redhen_engagement.install, line 252
RedhenEngagement install file.

Code

function redhen_engagement_update_7102(&$sandbox) {
  db_add_index('redhen_engagement', 'engagement_redhen_contact', array(
    'contact_id',
  ));
  db_add_index('redhen_engagement', 'engagement_author', array(
    'author_uid',
  ));
  db_add_index('redhen_engagement', 'engagement_engagement_score', array(
    'engagement_score',
  ));
}