Add an index to the filename_hash column in the advagg_aggregates table.

File

./advagg.install, line 549

Code

function advagg_update_7208(&$sandbox) {
    if (!db_index_exists('advagg_aggregates', 'filename_hash')) {
        db_add_index('advagg_aggregates', 'filename_hash', array(
            'filename_hash',
        ));
        return t('Database index added to the filename_hash column of the advagg_aggregates table.');
    }
    return t('Nothing needed to be done.');
}