function metatag_update_7029 in Metatag 7
Add an index to the {metatag} table to speed up some queries.
File
- ./
metatag.install, line 1964 - Install, update, and uninstall functions for the metatag module.
Code
function metatag_update_7029() {
if (!db_index_exists('metatag', 'type_revision')) {
db_add_index('metatag', 'type_revision', array(
'entity_type',
'revision_id',
));
return t('Added an index to the main Metatag table that will hopefully improve performance a little.');
}
else {
return t('Did not add the index, it already existed.');
}
}