Cookbook

Here is a cookbook of useful tips and ideas for specialized applications - feel free to add your own Migrate V2 tricks!

Adding serialized data to users data column

The users table has a "data" column which can store serialized data, but you cannot migrate into this field by doing a mapping, because the

Customized Mapping Migration of Drupal 6 content to new Drupal 8 instance.

Note: this information applies to the Drupal 8 migration system - it should be moved out of the documentation for the Drupal 7 migrate

Disable hooks during migration

Quite frequently, hooks defined by other modules firing during migration (as a result of node_save(), user_save(), etc.) cause various

Disable rules during a migration

During a migration it can be a good idea to disable Rules that send email or some other activity that would be quite "noisy" during a

Expand the range of data tracked by the timer instrument during a migration

The timer instrument is useful while developing a migration as a way to determine which stages of your migration are slow and could use

How to create nodes with hierarchical terms from excel

The purpose of this cookbook is to show how to create node from a excel documents via csv files.

Import content and its translations from CSV

Using migrate-7.x-2.6-RC1.

Import new users and their Profile2 fields from one CSV file

This Cookbook shows, how you import one CSV file into a Drupal 7 site, creating new users, each with Profile2 fields.

Importing Scheduled Content

If you need to import content that's unpublished, but scheduled for future publication, you can do so by setting a node's 'publish_on'

Migrate CSV files using intermediary SQL tables

Using migrate-7.x-2.6-RC1.

Migrating Book module nodes

Note: for migrate menu destination support and a Drupal-to-Drupal menu migration class that uses it, see [#763880] and [#2146961]

Migrating Photopost to Drupal 7

Create a 'photopost_migration' folder in sites/all/modules with photopost_migration.info and photopost_migration.module files that include

Migrating vBulletin to Drupal 7

I'm currently working my way through setting up a migration from vBulletin 3.8 to Drupal 7 using the migrate module (2.2). Here's the code

Modifying node body during migration

If you need to modify data in the node body during the migration process, you can use prepareRow($row).

Outputting rejected source data

A Migration can skip a source row by returning FALSE in prepareRow().

Protecting fields on Migrate Updates

Some people want to have the best of both worlds, they want their Migrations to both create new entities, rollback entities, and keep some

Remapping taxonomy terms on import

Sometimes you might take the opportunity when migrating to rearrange your vocabularies a bit - consolidate multiple similar terms to a

Simple D6 -> D7 profile migration

Several months ago, as I started my migration odyssey, I found a number of helpful tutorials here and elsewhere on the web. BTMash's

Guide maintainers

mikeryan's picture