function user_update_7018

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

Related topics

File

modules/user/user.install, line 918

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.