I have just tested the update to 8.7.1 (from 8.6.x) which includes the removal of the old automatic entity update functionality, which means drush entup
no longer works. As far as I understand the change record, developers now need to perform the updates inside update hooks. However, after updating the core with composer and performing the database update (which ran without any errors), I get a warning in the status report:
The following changes were detected in the entity type and field definitions.
taxonomy_term entity type :
The Moderation state field needs to be installed.
But without the drush entity-update
, I have no idea what I'm supposed to do here. How do I perform the update? Drush dbup
ran successfully (and now reports no outstanding updates), which drush entup
doesn't work anymore. How can I handle this error?
For the record, this is the output of the first drush updb, not sure if it's relevant:
server:~/httpdocs$ drush updb
------------------- ----------------------------------------------- --------------- -----------------------------------------------------------------------------
Module Update ID Type Description
------------------- ----------------------------------------------- --------------- -----------------------------------------------------------------------------
system 8701 hook_update_n Remove the unused 'system.theme.data' from state.
system 8702 hook_update_n Add the 'revision_translation_affected' entity key.
file 8700 hook_update_n Set the 'owner' entity key and update the field.
node 8700 hook_update_n Set the 'owner' entity key and update the field.
taxonomy 8701 hook_update_n Add an index on the 'taxonomy_term__parent' field table.
menu_link_content make_menu_link_content_revisionable post-update Update custom menu links to be revisionable.
system add_expand_all_items_key_in_system_menu_block post-update Initialize 'expand_all_items' values to system_menu_block.
system clear_menu_cache post-update Clear the menu cache. @see https:www.drupal.orgprojectdrupalissues3044364
system fix_jquery_extend post-update Clear the library cache and ensure aggregate files are regenerated.
taxonomy make_taxonomy_term_revisionable post-update Update taxonomy terms to be revisionable.
taxonomy remove_hierarchy_from_vocabularies post-update Remove the 'hierarchy' property from vocabularies.
views exposed_filter_blocks_label_display post-update Update exposed filter blocks label display to be disabled.
views make_placeholders_translatable post-update Rebuild cache to allow placeholder texts to be translatable.
------------------- ----------------------------------------------- --------------- -----------------------------------------------------------------------------
Do you wish to run the specified pending updates? (yes/no) [yes]:
> yes
[notice] Update started: system_update_8701
[ok] Update completed: system_update_8701
[notice] Update started: system_update_8702
[ok] Update completed: system_update_8702
[notice] Update started: file_update_8700
[ok] Update completed: file_update_8700
[notice] Update started: node_update_8700
[ok] Update completed: node_update_8700
[notice] Update started: taxonomy_update_8701
[ok] Update completed: taxonomy_update_8701
[notice] Update started: menu_link_content_post_update_make_menu_link_content_revisionable
[notice] Custom menu links have been converted to be revisionable.
[ok] Update completed: menu_link_content_post_update_make_menu_link_content_revisionable
[notice] Update started: system_post_update_add_expand_all_items_key_in_system_menu_block
[ok] Update completed: system_post_update_add_expand_all_items_key_in_system_menu_block
[notice] Update started: system_post_update_add_expand_all_items_key_in_system_menu_block
[ok] Update completed: system_post_update_add_expand_all_items_key_in_system_menu_block
[notice] Update started: system_post_update_clear_menu_cache
[ok] Update completed: system_post_update_clear_menu_cache
[notice] Update started: system_post_update_fix_jquery_extend
[ok] Update completed: system_post_update_fix_jquery_extend
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Taxonomy terms have been converted to be revisionable.
[ok] Update completed: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Taxonomy terms have been converted to be revisionable.
[ok] Update completed: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Taxonomy terms have been converted to be revisionable.
[ok] Update completed: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Taxonomy terms have been converted to be revisionable.
[ok] Update completed: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Taxonomy terms have been converted to be revisionable.
[ok] Update completed: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Taxonomy terms have been converted to be revisionable.
[ok] Update completed: taxonomy_post_update_make_taxonomy_term_revisionable
[notice] Update started: taxonomy_post_update_remove_hierarchy_from_vocabularies
[ok] Update completed: taxonomy_post_update_remove_hierarchy_from_vocabularies
[notice] Update started: views_post_update_exposed_filter_blocks_label_display
[ok] Update completed: views_post_update_exposed_filter_blocks_label_display
[notice] Update started: views_post_update_exposed_filter_blocks_label_display
[ok] Update completed: views_post_update_exposed_filter_blocks_label_display
[notice] Update started: views_post_update_make_placeholders_translatable
[ok] Update completed: views_post_update_make_placeholders_translatable
[success] Finished performing updates.