function taxonomy_edge_schema_alter in Taxonomy Edge 7
Implements hook_schema_alter().
Add extra index to {node} and {taxonomy_index} tables.
1 call to taxonomy_edge_schema_alter()
- _taxonomy_edge_add_new_indexes in ./
taxonomy_edge.install - Add extra indexes to tables.
File
- ./
taxonomy_edge.install, line 123 - Installation file for Taxonomy Edge
Code
function taxonomy_edge_schema_alter(&$schema) {
$schema['node']['indexes']['idx_taxonomy_edge'] = array(
'sticky',
'created',
'nid',
);
$schema['taxonomy_index']['indexes']['nid'] = array(
'nid',
'tid',
);
$schema['taxonomy_index']['indexes']['idx_taxonomy_edge'] = array(
'tid',
'nid',
);
}