You are here

function taxonomy_update_8701 in Drupal 8

Add an index on the 'taxonomy_term__parent' field table.

File

core/modules/taxonomy/taxonomy.install, line 228
Install, update and uninstall functions for the taxonomy module.

Code

function taxonomy_update_8701() {
  $entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $storage_definition = $entity_definition_update_manager
    ->getFieldStorageDefinition('parent', 'taxonomy_term');
  $entity_definition_update_manager
    ->updateFieldStorageDefinition($storage_definition);
}