You are here

function user_update_7018 in Drupal 7

Ensure there is an index on {users}.picture.

Related topics

File

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

Code

function user_update_7018() {
  if (!db_index_exists('users', 'picture')) {
    db_add_index('users', 'picture', array(
      'picture',
    ));
  }
}