Hi there,
I´m trying to migrate the legacy information that I have inside core profile fields to the new entity fields.
I´ve installed migrate module, this module and profile2. I´ve migrated my site from D6 to D7.
How should I do that? I´ve read that it can be done, but don´t understand how to do that.
Or where to start. I´m not a developer, but I´m willing to give it a try.
Any insight is going to be very much appreciated!!
Thanks!!
Rosamunda

Comments

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

This module does require programming, and how to develop your custom module to use the migrate_d2d framework for your migration is documented at http://drupal.org/node/1813498. You would need to extend the DrupalUser6Migration class and add field mappings for the Drupal 6 profile fields to the Drupal 7 custom fields, something like:

class MyCustomUserMigration extends DrupalUser6Migration {
  public function __construct($arguments) {
    parent::__construct($arguments);
    $this->addFieldMapping('field_telephone_number', 'profile_phone');
    $this->addFieldMapping('field_country', 'profile_country');
    ...
  }
}
mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

No further response.

Rosamunda’s picture

Thanks!

webdrips’s picture

Issue summary: View changes

For anyone having trouble migrating core Drupal 6 core profile fields to Drupal 7 entity fields, I had to unserizlize $row->data to get at the profile field values in prepareRow as follows:

  public function prepareRow($row) {
    $profile = unserialize($row->data);
    $row->profile_first_name = $profile['profile_first_name'];
    $row->profile_last_name = $profile['profile_last_name'];
    ...
  }