Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
The long and the short of  migrating to Drupal      By Jeremy French
Introduction• Part I   – 10,000 ft view of migrations   – Pretty pictures• Part II   – Detail about migrate module   – Cod...
Typical Migration Progress
by toastforbrekkieIll give you my proprietary CMS whenyou pry it from my cold, dead hands
FeaturesTwo types of features:1. Pointless features that users insist upon2. Critical Features that users forget to mention.
Migration Vs New buildPhoto by echiner1             Photo by Alex Pepperhill     Replacing existing system is inherently m...
Functionality, go with the grain                         Photo by Marc ArsenaultDon’t melt your Drupal
Launch                         • Big bang is only an                           option                         • Can migrat...
Shakedown• Define a time after launch to address critical  bugs as they are discovered
Part IIDetailed look at migration module, no morepictures, but some code.
Part II Look at migration• Take Stack Exchange dump files and import  into Drupal site.• Code available on githubhttps://g...
Migrate / Migrate Extras• Provide a framework for migrating content• Migrate contains the framework and  migration code fo...
Migrate UI• Like views_ui it dosen’t add any functionality• Shows a list of active migrations and allows  you to run them....
Mapping??• Central concept is that of a mapping• A migration class will map some data to an  entity/content type• In a sim...
Migrate Module Architecture
MigrateSource• Source can be anything built in classes are  –   MigrateSourceCSV  –   MigrateSourceList  –   MigrateSource...
MigrateDestination• Entity types Users, Nodes, Terms.• Migrate Extras has things like files.
MigrateMap• Contains a mapping from an id in the source  system• Used for keeping track of migrations and for  references.
MigrateFieldMapping• In simple case it maps a field in the source to  that in the destination.• Useful in cases where ther...
Lets look at some code.
Summary• Migrate starts quickly but functionality is more  difficult to migrate than content• Cultural Change takes time, ...
Questions Now (or later)@JFrenchTweetjeremy@jeremyfrench.co.ukThanks to everyone for making DrupalCampLondon!
Upcoming SlideShare
Loading in …5
×

The long and the short of migrating to Drupal

3,241 views

Published on

This is the slide deck for the presentation I did at Drupal camp london 2013

Published in: Technology
  • Be the first to comment

The long and the short of migrating to Drupal

  1. 1. The long and the short of migrating to Drupal By Jeremy French
  2. 2. Introduction• Part I – 10,000 ft view of migrations – Pretty pictures• Part II – Detail about migrate module – Code – No pretty pictures
  3. 3. Typical Migration Progress
  4. 4. by toastforbrekkieIll give you my proprietary CMS whenyou pry it from my cold, dead hands
  5. 5. FeaturesTwo types of features:1. Pointless features that users insist upon2. Critical Features that users forget to mention.
  6. 6. Migration Vs New buildPhoto by echiner1 Photo by Alex Pepperhill Replacing existing system is inherently more complicated than building new system
  7. 7. Functionality, go with the grain Photo by Marc ArsenaultDon’t melt your Drupal
  8. 8. Launch • Big bang is only an option • Can migrate pages and keep editing on old system • Can migrate traffic graduallyPhoto by Trey Ratcliff
  9. 9. Shakedown• Define a time after launch to address critical bugs as they are discovered
  10. 10. Part IIDetailed look at migration module, no morepictures, but some code.
  11. 11. Part II Look at migration• Take Stack Exchange dump files and import into Drupal site.• Code available on githubhttps://github.com/jeremyfrench/se_migrate
  12. 12. Migrate / Migrate Extras• Provide a framework for migrating content• Migrate contains the framework and migration code for core types• Migrate extras helps migrate data for popular modules – Flag – Voting API – Media …
  13. 13. Migrate UI• Like views_ui it dosen’t add any functionality• Shows a list of active migrations and allows you to run them.• Also shows fields that are unmapped from source and destination
  14. 14. Mapping??• Central concept is that of a mapping• A migration class will map some data to an entity/content type• In a simple case ‘fields’ will be mapped to fields in the content type
  15. 15. Migrate Module Architecture
  16. 16. MigrateSource• Source can be anything built in classes are – MigrateSourceCSV – MigrateSourceList – MigrateSourceMSSQL – MigrateSourceMultiItems – MigrateSourceOracle – MigrateSourceSQL – MigrateSourceXMLYou can roll your own (for example from acustom api).
  17. 17. MigrateDestination• Entity types Users, Nodes, Terms.• Migrate Extras has things like files.
  18. 18. MigrateMap• Contains a mapping from an id in the source system• Used for keeping track of migrations and for references.
  19. 19. MigrateFieldMapping• In simple case it maps a field in the source to that in the destination.• Useful in cases where there is a 1-1 mapping.Often other tricks are needed…
  20. 20. Lets look at some code.
  21. 21. Summary• Migrate starts quickly but functionality is more difficult to migrate than content• Cultural Change takes time, hand holding helps.• Migrate module is awesome.
  22. 22. Questions Now (or later)@JFrenchTweetjeremy@jeremyfrench.co.ukThanks to everyone for making DrupalCampLondon!

×