Very few migrations are simple and straight-forward enough that a simple field mapping gets all of the little bits you need. In this week's Importing Data With Migrate and Drupal 7 lessons, we take a look at some complicated field mappings. We are going to add some new data we need to import, with team information. The team data is related to our player data through a relationship, and a player can have multiple teams they've played for. In these lessons we'll see how we can handle referenced fields during migration, and two approaches to working with multi-value fields. Additionally, we're going to see how creating and using migration stubs can help us handle dependencies during more complex migrations.
- Using sourceMigrations to Add Related Data
- Map Multi-value Fields With the Separator Method
- Create Migrate Stubs
Next week, we're going to wrap up this series with a look at the source and destination migration classes, and some tips for troubleshooting migration failures.
Add new comment