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.
Write Migrate integration for the global configurations to allow for upgrading from 7.x-1.x.
This should convert the "metatag_defaults" table data to the MetatagDefaults config entities for D8.
Comment | File | Size | Author |
---|---|---|---|
#33 | metatag-n2563651-33.patch | 36.15 KB | DamienMcKenna |
#32 | metatag-n2563651-32.patch | 36.16 KB | DamienMcKenna |
#31 | metatag-n2563651-31.patch | 33.88 KB | DamienMcKenna |
#24 | metatag-n2563651-24.patch | 32.84 KB | DamienMcKenna |
#24 | metatag-n2563651-24.interdiff.txt | 19.11 KB | DamienMcKenna |
Issue fork metatag-2563651
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
DamienMcKennaThe 1.0 release is being bumped up, so the everything else is being put on the back burner for now.
Comment #3
DamienMcKennaPostponing until after 1.0.
Comment #4
DamienMcKennaComment #5
DamienMcKenna8.x-1.0 is out, so this is fair game again.
Comment #6
DamienMcKennaComment #7
DamienMcKennahttps://thinktandem.io/blog/2018/07/24/writing-a-custom-drupal-8-module-...
Comment #8
DamienMcKennaComment #9
DamienMcKennaComment #10
DamienMcKennaWork has started on this, see the issue fork for details; I've also attached it as a patch file to avoid accidental loss.
Comment #12
DamienMcKennaSome suggestions of things to look at from @alisonjo315 (her comments):
Comment #14
DamienMcKennaWIP from last time.
Comment #15
DamienMcKennaEverything so far, not sure if anything was changed from #14.
Comment #16
DamienMcKennaSo yes, some changes were made from #14 ;-)
Comment #20
bob.hinrichs CreditAttribution: bob.hinrichs commentedFYI, I tried this out. I do not know if it is finished enough to try. But the sourceid2 length for the migrate map table created this error:
String data, right truncated: 1406 Data too long for column 'sourceid2' at row 1: INSERT INTO {migrate_map_upgrade_d7_metatag_default} ("source_ids_hash", "sourceid1", "sourceid2", "source_row_status", "rollback_action", "hash") VALUE
S (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5)
Comment #21
DamienMcKennaComment #22
DamienMcKennaRemove the workaround for D8.
Comment #24
DamienMcKennaWIP. Refactoring some of the transformation logic.
Comment #30
DamienMcKennaA suggestion from benjifisher in Slack - use the entity destination plugin, like Menu and Block use.
Comment #31
DamienMcKennaChanging the migration plugin to call them "defaults", and using the entity destination plugin.
Comment #32
DamienMcKennaWIP
Comment #33
DamienMcKennaPHP 7 doesn't allow for multiple return types.