The Migrate module is a flexible framework for migrating content into Drupal from other sources like CSV, XML, JSON, databases, and web services. It can migrate data to Drupal nodes, users, taxonomy terms, comments, and other entities. The module is useful for migrating data to Drupal, updating large amounts of existing Drupal data, and periodically updating data from external sources. It has an object-oriented architecture and provides tools like a web UI and Drush integration to help with migrations.
3. The Goal
Convince you to use Migrate module if you need:
¡ñ
Migrate data to Drupal
¡ñ
Update big amount of Drupal data
¡ñ
Periodically update Drupal data from external
sources
4. Sources & Destinations
¡ñ
CSV ¡ú
¡ñ
XML ¡ú
¡ñ
JSON ¡ú
¡ñ
PDO (DBTNG) ¡ú
¡ñ
MSSQL ¡ú
¡ñ
Oracle API ¡ú
¡ñ
??? ¡ú
¡ñ
Node
¡ñ
User
¡ñ
Taxonomy term
¡ñ
Comment
¡ñ
File
¡ñ
Fields
¡ñ
Other Entities
5. Usage Cases
¡ñ
Migrate data to Drupal from single source
¡ñ
Compile and migrate data from multiple sources
to Drupal
¡ñ
Incremental & repeatable migrations
¡ñ
Updating existing content
¡ñ
Creating test content
6. Useful Tools: Web UI
¡ñ
Supporting collaboration between stakeholders
and implementors
¡ñ
Quality assurance
¡ñ
Performance statistics
9. Inside Migrate:
Migration Classes
¡ñ
Define where the source data is coming from.
¡ñ
Define the destination object type.
¡ñ
Define mappings from source fields to
destination fields.
10. Inside Migrate: Commonly
Implemented Methods
¡ñ
function prepareRow($row)
¡ñ
function prepare($entity, stdClass $row)
¡ñ
function complete($entity, stdClass $row)
¡ñ
function createStub()