Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #2
plachComment #3
PasqualleComment #4
xjmCleaning up leftover beta targets from 9.0.x.