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.
As a follow up for #1571632 we need to migrate date format settings to the new CMI implementation. We also need to clean up the tables we are no longer using after the migration.
Comment | File | Size | Author |
---|---|---|---|
#11 | date-upgrade-1860778-11.interdiff.do_not_test.patch | 460 bytes | plach |
#11 | date-upgrade-1860778-11.patch | 11.82 KB | plach |
#9 | date-upgrade-1860778-9.patch | 11.82 KB | plach |
#9 | date-upgrade-1860778-9.test.patch | 6.39 KB | plach |
#8 | date-upgrade-1860778-8.patch | 11.82 KB | Berdir |
Comments
Comment #1
BerdirI think missing upgrade path is critical?
Comment #2
catchI wouldn't necessarily delete the old tables, we can open a 9.x issue to do that now, like #1860986: Drop left-over tables from 8.x.
Comment #3
BerdirFine with keeping the tables. But there's no need to keep them in system_schema() and there they still are :)
Comment #4
tayzlor CreditAttribution: tayzlor commentedI tried to make a bit of a start on this. Posting up patch of progress so far, incase anyone else is interested in taking up.
Setting to needs work, as there is still some things to do.
I haven't looked into what is involved with any of the date_locale stuff yet.
Comment #5
BerdirThanks for working on this!
Should be Contains...
Missing . at the end.
You can use update_variable_del() here.
->fields.. should be on a new, separate line.
Wrong comment.
I'm not 100% sure, but I think localized date formats is a new feature in 8.x and we don't need to provide a 8.x -> 8.x upgrade path. So we can probably ignore this.
Setting to needs review to check if this passes. Setting to needs work doesn't make much sense, all patches will be sent to the testbot when the issue is set to needs review. If you really don't want to have something tested, use -do-not-test.patch.
Comment #7
BerdirWorking a bit on this.
Comment #8
BerdirFixed the things pointed out in my review, added locale date format (they exist in D7 :) ) upgrade path and tests for it.
Something missing?
Comment #9
plachHere is a reroll + a test-only patch.
Comment #10
plachI added the leftover tables to #1860986: Drop left-over tables from 8.x.
Comment #11
plachUpdated the update function number :)
Comment #12
plachI manually tested the upgrade path and it seems to be working well. Overall the date format localization code looks pretty broken in HEAD, AAMOF it seems localized formats are not being picked up but the data is being migrated correctly, which is all we need for what this patch is concerned.
The patch looks good and the tests capture the bug. Since I just rerolled it I feel ok to RTBC it.
Comment #13
webchickLovely!
Committed and pushed to 8.x. Thanks!
Comment #15
xjmThe upgrade path or its tests seem to be unstable: #1893800: Something is very, very wrong with update.php / upgrade tests... demons suspected