Fix Update aborted by: varbase_core_update_90006

Created on 14 May 2024, 7 months ago
Updated 15 July 2024, 5 months ago

Problem/Motivation

updb varbase_core_update_90006 issue causing upgrade from Drupal 8 to 9 to abort. The problem arises from /Drupal::classResolver()->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)->applyUpdates(); attempting to update an entity type that is not prepared for updates. The affected entity types need a hook updb to resolve their entity type, but the upgrade is halted by the varbase_core_update_90006 error.

drush entity-updates
The following updates are pending:

entity_subqueue entity type : 
The Entity subqueue entity type needs to be updated.
The Revision ID field needs to be installed.
The Default translation field needs to be installed.
The Default revision field needs to be installed.
The Revision translation affected field needs to be installed.
node entity type : 
The node.field_project_logo field needs to be updated. 

 Do you wish to run all pending updates? (yes/no) [yes]:
 > yes


In DevelEntityDefinitionUpdateManager.php line 169:
                                                                                           
  The entity schema update for the entity_subqueue entity type requires a data migration.  

Steps to reproduce

Proposed resolution

  • Remove /Drupal::classResolver()->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)->applyUpdates(); from hook updb and use varbase drush command (edupdb) to update entity after updb finishes
  • Ensure a smoother upgrade process.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.0.0 , varbase_core-10.0.24 , varbase-9.1.4 , varbase_core-9.1.37 , varbase_core-9.0.85

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

🇯🇴Jordan Ahmad Khader

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024