Blog Archives

Migrating Specific Fields in a D8 Migration

I recently needed a way to update the value of a single field of a D7 to D8 node migration. The client was already updating the migrated content so I had to be careful with what I migrated. The entity

Tagged with: , ,
Posted in Development

Migrating a Drupal 7 User Profile2 Image Field to a Drupal 8 User Image Field

Consider this scenario: Drupal 7 site contains Profile2 profile called person with image field called field_oldsite_person_image. Users each have a profile2 profile associated with their account. Drupal 8 site has an image field called field_newsite_user_photo on the user entity itself. If you need to

Tagged with: , , , ,
Posted in Development

Using GROUP_CONCAT to Combine Rows in a Drupal Query

Recently I was working on a D7 to D8 migration. I was trying to import news items and their taxonomy terms (among many other things). To make things simple I wanted the query results to have (for each node) a

Tagged with: , , , , , , ,
Posted in Development