Update hooks fail

Created on 5 June 2024, 23 days ago

Problem/Motivation

When updating from an older version, update hooks fail due to missing config:

>  [notice] Update completed: lb_accordion_update_9004
>  [notice] Update started: lb_cards_update_9008
>  [error]  Configuration <em class="placeholder">core.entity_form_display.block_content.lb_accordion.default</em> depends on the <em class="placeholder">field.field.block_content.lb_accordion.field_section_subtitle</em> configuration that will not exist after import.
> Configuration <em class="placeholder">core.entity_view_display.block_content.lb_accordion.default</em> depends on the <em class="placeholder">field.field.block_content.lb_accordion.field_section_subtitle</em> configuration that will not exist after import. 

Steps to reproduce

Run updb from a version prior to 2.0.0.

Proposed resolution

Move config for older update hooks into a separate directory, similar to lb_cards.

Remaining tasks

- Move the code
- Test it

πŸ› Bug report
Status

Needs review

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States froboy Chicago, IL

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024