You are here

function mailchimp_signup_update_7003 in Mailchimp 7.4

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_signup/mailchimp_signup.install \mailchimp_signup_update_7003()

Add index for the field looked up by it's entity controller.

File

modules/mailchimp_signup/mailchimp_signup.install, line 187
Install, update and uninstall functions for the mailchimp_signup module.

Code

function mailchimp_signup_update_7003(&$sandbox) {
  if (db_index_exists('mailchimp_signup', 'name')) {
    return t('Database index for name column of the mailchimp_signup table existed already.');
  }
  db_add_index('mailchimp_signup', 'name', array(
    'name',
  ));
  return t('Database index added to the name column of the mailchimp_signup table.');
}