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.
Updb errors

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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sea2709 created an issue. See original summary.

sea2709’s picture

StatusFileSize
new2.21 KB

I looked into the source code and I see that there are some update hooks to remove some updates from 1.x. I'm not quite sure why the installed version of UI Patterns, UI Patterns Layout and UI Patterns Views on my site is 8000. I just took over this site for about 3.5 years, and we kept using UI Patterns 1.x since then (without any further development related to UI Patterns 1.x). When UI Patterns released version 2, I upgraded UI Patterns to version 2 beta.

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

pdureau’s picture

Title: Update database issue when upgrading to UI Patterns 2.0.3 » [2.0.x] Update database issue when upgrading to UI Patterns 2.0.3
grimreaper’s picture

Version: 2.0.3 » 2.0.x-dev
Status: Active » Needs work

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.

sea2709’s picture

@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!

just_like_good_vibes’s picture

Assigned: Unassigned » grimreaper
Status: Needs work » Needs review

please review :) @grimreaper

grimreaper’s picture

Assigned: grimreaper » just_like_good_vibes
Status: Needs review » Reviewed & tested by the community

Hello,

I did a small change (>= instead of >) and manually tested before and after the change. In both cases it was ok.

Pipeline is in error due to this evening Core security release.

RTBC, just rerun the pipeline when you want to merge.

  • grimreaper committed 25ff74a1 on 2.0.x authored by sea2709
    fix: #3522523 [2.0.x] Update database issue when upgrading to UI...
grimreaper’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.