comparison 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
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
184 $definition_update_manager->uninstallFieldStorageDefinition($content_translation_status); 184 $definition_update_manager->uninstallFieldStorageDefinition($content_translation_status);
185 } 185 }
186 186
187 return t('The publishing status field has been added to taxonomy terms.'); 187 return t('The publishing status field has been added to taxonomy terms.');
188 } 188 }
189
190 /**
191 * Add an index on the 'taxonomy_term__parent' field table.
192 */
193 function taxonomy_update_8701() {
194 $entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
195 $storage_definition = $entity_definition_update_manager->getFieldStorageDefinition('parent', 'taxonomy_term');
196 $entity_definition_update_manager->updateFieldStorageDefinition($storage_definition);
197 }