Add index to aggregate_filenames_hash and porder in advagg_aggregates table.

File

./advagg.install, line 852

Code

function advagg_update_7221(&$sandbox) {
    if (!db_index_exists('advagg_aggregates', 'aggregate_filenames_hash_porder')) {
        $fields = array(
            'aggregate_filenames_hash',
            'porder',
        );
        db_add_index('advagg_aggregates', 'aggregate_filenames_hash_porder', $fields);
        return t('Database index added to the aggregate_filenames_hash and porder column of the advagg_aggregates table.');
    }
    return t('Nothing needed to be done.');
}