function taxonomy_update_8701
Add an index on the 'taxonomy_term__parent' field table.
File
-
core/
modules/ taxonomy/ taxonomy.install, line 228
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.