Mercurial > hg > isophonics-drupal-site
diff core/modules/taxonomy/taxonomy.install @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/taxonomy/taxonomy.install Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/taxonomy/taxonomy.install Thu May 09 15:33:08 2019 +0100 @@ -186,3 +186,12 @@ return t('The publishing status field has been added to taxonomy terms.'); } + +/** + * Add an index on the 'taxonomy_term__parent' field table. + */ +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); +}