Update database issue when upgrading to UI Patterns 2.0.3

Created on 3 May 2025, 3 months ago

My site is using UI Patterns 2.0.0-beta3. When I upgrade to UI Patterns 2.0.3 by using composer, and run drush updb, then I run into some errors.

Did I miss any steps? It's been a while that I haven't touched Drupal / UI Patterns.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sea2709 Texas

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

Merge Requests

Comments & Activities

  • Issue created by @sea2709
  • πŸ‡ΊπŸ‡ΈUnited States sea2709 Texas

    I looked into the source code and I see that there are some update hooks to remove some updates from 1.x. Since my site is using UI Patterns 2.x , so the installed versions of UI Patterns modules are 8000.

    I added a patch for some checking the installed versions of modules before removing it.

  • πŸ‡«πŸ‡·France pdureau Paris
  • Status changed to Needs work 9 days ago
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

    Hello,

    Please create a MR.

    I think you can change the schema version of those modules in key_value table to point to the hook_update_N mentioned in those modules.

  • Pipeline finished with Failed
    7 days ago
    Total: 505s
    #557758
  • Pipeline finished with Success
    7 days ago
    Total: 641s
    #557761
  • πŸ‡ΊπŸ‡ΈUnited States sea2709 Texas

    @grimreaper: I just created a MR. Yeah, I can change the schema version in key_value table on my local only, in my company, we're not allowed to do that on the servers, except some edge cases!

Production build 0.71.5 2024