Closed (fixed)
Project:
Name Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2012 at 17:30 UTC
Updated:
19 Mar 2014 at 22:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alan d. commentedIf this is a one off, could you simple concat the name columns into one and do a one to one mapping?
Comment #2
alan d. commentedRight, I just had to do this myself from a single profile D6 field to a D7 user name field. This is the first time that I have used Migrate, so this may be wrong...
This is a best guess data mining from a single text field. If the fields were already separated, then this would be much easier.
In a nutshell, htmigrateUserMigration::prepareRow() simple tries to create an array of name components. All enabled components would be:
This was our migration class.
Out of the box, the Name field module has no support for the Migrate module, so I had to write this MigrateFieldHandler class to get it to work (see patch).
Comment #3
alan d. commentedPushed to dev. Reopen if you find any issues.
Comment #5
jelle_sThis kind of clashes with #1463476: Migrate integration and #1468010: Name field support where a migrate field handler was added to Migrate Extras, where Migrate Extras seems to be doing a 'better' job (Following the Migrate standards) at it. Maybe this patch should be reverted again, and mention on the project page that if you want to use Migrate with this module, Migrate Extras should be used?
Comment #6
danepowell commentedInstead of re-opening old issues, let's continue the discussion at #2221717: Improve and de-dupe migrate handler