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.
In anticipation of the core issue getting approved (#2455949: [policy, no patch] Re-activate the head2head project and use it for beta2beta upgrades in the short-term), I upgraded this module to D8, wrote an initial beta2beta submodule and provided the first upgrade function for #1847596: Remove Taxonomy term reference field in favor of Entity reference.
We still need to port the UI and the ability to run specific upgrade functions regardless of the installed module schema, but at least it's a start and the current code + taxonomy field update works :)
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff.txt | 7.58 KB | amateescu |
#1 | 2456419.patch | 11.63 KB | amateescu |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedAnd the patch. We should probably open a 8.x-1.x branch for this.
Comment #2
andypostLooks great for start!
Comment #3
Wim Leers@amateescu++
Comment #4
rpayanmI test this patch on a site on beta 7:
Step:
1. Enable the module beta2beta.
2. When I visit a article page with taxonomy term I got this error:
3. Then I went to mysite/update.php and run the updates: I got other error:
And the error on article page is the same.
Comment #5
amateescu CreditAttribution: amateescu for Drupal Association commented@rpayanm, the first one is by design (so not actually an error) because we want to restrict people from doing any kind of change to a taxonomy reference field before running the update script :)
The second one is not related to the first upgrade function provided by this patch so we'll need to investigate that in another issue. Note that #2340993: SqlContentEntityStorageSchema::requiresEntityDataMigration() returns TRUE for cases where it should return FALSE has been committed today so it's possible that your second error is already fixed.
Comment #7
amateescu CreditAttribution: amateescu for Drupal Association commentedI finished porting the UI from alpha2alpha, moved the first update function to the "beta10" namespace and added support for all taxonomy reference formatters.
Comment #8
amateescu CreditAttribution: amateescu for Drupal Association commentedRetroactive tagging.