Upgrade path failure from 1.x

Created on 11 October 2023, about 1 year ago

Problem/Motivation

Upgrading from version 1.0.14 to 2.1.2 seems to produce a fatal error.

lleber@lleber:/var/www/html$ drush updb
 ------------- ----------- --------------- ------------------------------------ 
  Module        Update ID   Type            Description                         
 ------------- ----------- --------------- ------------------------------------ 
  editoria11y   9001        hook_update_n   9001 - Add new config options.      
                                            Note that "Ignore containers" has   
                                            become "Ignore elements." Make a    
                                            note of your setting before         
                                            proceeding as it will need to be    
                                            rewritten.                          
  editoria11y   9003        hook_update_n   9003 - Creates tables for           
                                            dashboard data using new schema.    
                                            Note when updating between 2.x      
                                            Betas that this will restore any    
                                            previously hidden alerts.           
  editoria11y   9004        hook_update_n   9004 - Updates tables to include    
                                            entity IDs. Adds node delete hooks  
                                            to auto-update dashboard. Converts  
                                            dashboard displays to               
                                            admin-editable Views.               
 ------------- ----------- --------------- ------------------------------------ 


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

>  [notice] Update started: editoria11y_update_9001
>  [notice] Update completed: editoria11y_update_9001
>  [notice] Update started: editoria11y_update_9003
>  [notice] Update completed: editoria11y_update_9003
>  [notice] Update started: editoria11y_update_9004
>  [error]  Cannot add field 'editoria11y_results.entity_id': field already exists. 
>  [error]  Update failed: editoria11y_update_9004 
 [error]  Update aborted by: editoria11y_update_9004 
 [error]  Finished performing updates. 

I haven't been able to do a deep dive on this, unfortunately. I will eventually get time, unless someone beats me to it ^_^.

Steps to reproduce

  1. Install version 1.0.14.
  2. Bump version to 2.1.2.
  3. Run database updates

-- or for those who fear not the command line --

composer require drupal/editoria11y:=1.0.14 && \
  drush en editoria11y && \
  composer require drupal/editoria11y:=2.1.2 && \
  drush cr && \
  drush updb --no-interaction

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Bugs

Created by

πŸ‡ΊπŸ‡ΈUnited States luke.leber Pennsylvania

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

Comments & Activities

Production build 0.71.5 2024