You are here

function user_update_7019 in Drupal 7

Ensure there is a combined index on {authmap}.uid and {authmap}.module.

Related topics

File

modules/user/user.install, line 919
Install, update and uninstall functions for the user module.

Code

function user_update_7019() {

  // Check first in case it was already added manually.
  if (!db_index_exists('authmap', 'uid_module')) {
    db_add_index('authmap', 'uid_module', array(
      'uid',
      'module',
    ));
  }
}