function taxonomy_entity_index_update_8001 in Taxonomy Entity Index 8
Add an index on revision_id.
File
- ./
taxonomy_entity_index.install, line 89 - Install file for taxonomy_entity_index.
Code
function taxonomy_entity_index_update_8001() {
$database = Drupal::database();
$spec = [
'fields' => [
'revision_id' => [
'description' => 'The entity revision ID this term is attached to.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
],
];
$database
->schema()
->addIndex('taxonomy_entity_index', 'revision_id', [
'revision_id',
], $spec);
}