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.
This is just for the contrib side of https://www.drupal.org/project/drupal/issues/2934799. Once we correctly change the d6_term_node_revision migration to use d6_node_revision for its migration_lookup mapping instead of d6_node, we need to change the code here to make sure it will have the necessary migration IDs available to it when it is run.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff_2-4.patch | 2.21 KB | Olarin |
#4 | 2935225-4.patch | 3.13 KB | Olarin |
#2 | 2935225-2-migrate_upgrade-fix_to_d6_term_node_revision_handling.patch | 2.93 KB | Olarin |
Comments
Comment #2
Olarin CreditAttribution: Olarin at Kosada commentedHere's my patch. Note that without the core patch linked above, it will result in all d6_term_node_revision items being ignored. (Which is only a slight regression from the existing behaviour of some/most of them being incorrectly ignored, which the two patches together should correct.)
Comment #3
heddnCan we name this variable d6RevisionMigrations?
This will always be a string, no?
Comment #4
Olarin CreditAttribution: Olarin at Kosada commentedSure, but we should probably update the existing nodeMigrations variable to d6NodeMigrations for consistency, yes? Updated patch attached.
Probably? I don't know. I was modeling after the existing code immediately prior that popuplates the nodeMigrations variable. The is_string call there comes from mikeryan in commit 34f29d0b0c5b35ec5854d3596ebb95b59c5ccc88, so I guess ask him. Perhaps that was just a way of ensuring that the key had not been left out, and is_string made as much sense as isset (since an invalid value wouldn't do us much good either)?
Comment #5
Olarin CreditAttribution: Olarin at Kosada commentedComment #7
heddn