Upgrade to latest 2.1.3 updb error

Created on 25 October 2023, 8 months ago

Problem/Motivation

Probably not an issue for most people, but when you previously used the patch from issue #3380446 (Use views for the reports and provide blocks https://www.drupal.org/project/editoria11y/issues/3380446 ✨ Use views for the reports and provide blocks Fixed ), it already ran the updb hooks 9003 and 9004 from the patch. The 2.1.3 version has some fixes/other code in those hooks that is not executed when you want to update the module.

Steps to reproduce

Apply the patch from the issue, then update the module to version 2.1.3.

Proposed resolution

- Dive into the DB and reset the system latest updb hook number
- Create a custom updb hook that runs before this modules updb hook and make sure the system latest updb hook number is set correctly.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

πŸ’¬ Support request
Status

Fixed

Version

2.1

Component

Documentation

Created by

πŸ‡§πŸ‡ͺBelgium kriboogh

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

Comments & Activities

  • Issue created by @kriboogh
  • πŸ‡§πŸ‡ͺBelgium kriboogh

    I fixed this in our case, by running a updb hook in one of our custom modules and including the editoria11y updb hooks (so no need to fiddle in the db).

    function my_module_update_9000(&$sandbox) {
      Drupal::moduleHandler()->loadInclude("editoria11y", "install");
      editoria11y_update_9003($sandbox);
      editoria11y_update_9004($sandbox);
    }
    
  • Assigned to itmaybejj
  • Status changed to Fixed 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States itmaybejj

    Thank you.

    One could also:
    drush ev "\Drupal::service('update.update_hook_registry')->setInstalledVersion('editoria11y', 9002);"

    I'm going to leave this as-is in the release, since it only affects a few people, and all of them know how to install patches!

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

Production build 0.69.0 2024