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.
No one likes typing in the number of schema versions (updates) a module has. This patch reimplements drupal_get_schema_versions() to use reflection to find out which update functions are defined.
Comment | File | Size | Author |
---|---|---|---|
#3 | fix_versions.patch | 1.57 KB | drumm |
install.inc.diff | 938 bytes | drumm | |
Comments
Comment #1
drumm(system_versions() isn't removed by this because I have another more critical patch which that would conflict with.)
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
drummThere was still some code expecting the hook. This changes it to use the versions array. And the update function finding is a bit more strict, node_update_index() was being mistaken as node_update_0().
Comment #4
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #5
(not verified) CreditAttribution: commented