Problem/Motivation

Based on discussions in #3066801: Add hook_removed_post_updates() and #3098475: Add more strict checking of hook_update_last_removed() and better explanation.

hook_update_last_removed() returns a single string for schema version.

It would be possible to extend this to allow returning a version number too, i.e.

/**
 * Implements hook_update_last_removed().
 */
function system_update_last_removed() {
  // The last removed update was 8809, and the first stable tag
  // it was removed in was 9.0.0
  return ['8809', '9.0.0'];
}

This would then allow system_requirements() to show an explicit version below which people need to downgrade to.

Proposed resolution

Remaining tasks

1. Decide on the array format

2. Decide if we're going to deprecate returning a string.

User interface changes

API changes

Data model changes

Release notes snippet

Comments

catch created an issue. See original summary.

plach’s picture

Issue tags: +beta target
Pasqualle’s picture

Version: 9.0.x-dev » 9.2.x-dev
xjm’s picture

Issue tags: -beta target

Cleaning up leftover beta targets from 9.0.x.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.