Problem/Motivation

There is no migration integration for this module.

Proposed resolution

Write the cck field migration class.

Remaining tasks

Patch
Test
Commit

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

Add migration upgrade support.

brooke_heaton’s picture

This is helpful but could you provide the actual yml format example for how this mapping is handled in the migrate yml?

brooke_heaton’s picture

Ok, so it's fairly intuitive, but as an example for First Name and Last Name fields, my process mapping in my migrate yml, which is working with this patch is:

'field_name/given': first_name
'field_name/family': last_name

so use the machine name of the field followed by the name sub-element

brooke_heaton’s picture

RBTC for me!

  • Alan D. committed 0d55286 on 8.x-1.x authored by hussainweb
    Issue #2843684 by hussainweb, brooke_heaton, Alan D.: Migration...
alan d.’s picture

Status: Needs review » Fixed

Thanks!

I am a bit green on the internals, but was successfully able to migrate name field data with the patch, so I'm assuming it works :)

id: custom_user
label: 'User accounts'
migration_tags:
  - Drupal 7
class: Drupal\user\Plugin\migrate\User
source:
  plugin: custom_user
process:
  uid: uid
  name: name
.....
  roles:
    plugin: migration_lookup
    migration: custom_user_role
    source: roles
  'field_name/title': user_title
  'field_name/given': user_given
  'field_name/family': user_family

Would have been best to test a true D7 name field to D8 name field (field_new_name: field_old_name) for testing, but open a followup issue if there are issues with that :P

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.