• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Migration
 

Migration

on

  • 913 views

 

Statistics

Views

Total Views
913
Views on SlideShare
309
Embed Views
604

Actions

Likes
1
Downloads
0
Comments
0

1 Embed 604

http://camp13.drupal.ua 604

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Migration Migration Presentation Transcript

    • Migrate ModulePresented by danylevskyi (Dmytro Danylevskyi)DrupalCamp Kyiv 2013
    • Migrate is FrameworkFlexible framework for migrating content intoDrupal from other sources.
    • The GoalConvince you to use Migrate module if you need:●Migrate data to Drupal●Update big amount of Drupal data●Periodically update Drupal data from externalsources
    • Sources & Destinations●CSV →●XML →●JSON →●PDO (DBTNG) →●MSSQL →●Oracle API →●??? →●Node●User●Taxonomy term●Comment●File●Fields●Other Entities
    • Usage Cases●Migrate data to Drupal from single source●Compile and migrate data from multiple sourcesto Drupal●Incremental & repeatable migrations●Updating existing content●Creating test content
    • Useful Tools: Web UI●Supporting collaboration between stakeholdersand implementors●Quality assurance●Performance statistics
    • Useful Tools:Drush Integration●$ migrate-import Article●$ migrate-import Article –update●$ migrate-import Article --limit="100 items"●$ migrate-import Article --group="MyGroup"
    • Inside Migrate:ArchitectureObject-oriented architecture allows defaultbehavior to be extended and/or overridden.●Migration●MigrateSource●MigrateDestination●MigrateMap●MigrateFieldMapping
    • Inside Migrate:Migration Classes●Define where the source data is coming from.●Define the destination object type.●Define mappings from source fields todestination fields.
    • Inside Migrate: CommonlyImplemented Methods●function prepareRow($row)●function prepare($entity, stdClass $row)●function complete($entity, stdClass $row)●function createStub()
    • https://drupal.org/project/migrate
    • Thank You!