function advagg_update_7221 in Advanced CSS/JS Aggregation 7.2
Add index to aggregate_filenames_hash and porder in advagg_aggregates table.
File
- ./
advagg.install, line 852 - Handles Advanced Aggregation installation and upgrade tasks.
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.');
}