Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Upgrade Using Drush

Drush Migrate Commands


UI Based Migration

Simple, but will write this up later.

Migrating with Drush

You will need a few extra modules to get started with this route: Migrate ToolsMigrate Upgrade & Migrate Plus

...

  1. Download & setup both the D7 and the D8 sites
  2. Enable the migrate, migrate tools, migrate upgrade & migrate plus modules in the D8 site
  3. In the D8 site run this

    Code Block
    drush migrate-upgrade --legacy-db-url=mysql://drupal:drupal@localhost/D7SITE_drupalvm --legacy-root=http://D7SITE.dvm --configure-only
    drush migrate-status
  4. You will see a list of all the items queued for migration.  You can either migrate them all or pick and chose.
    1. You can migrate all of the items with:

      Code Block
      drush migrate-import --all 
    2. OR you can be more granular and migrate only certain items:

      Code Block
      drush migrate-import {migration name} 
      i.e.
      drush migrate-import upgrade_d7_menu
      drush migrate-import upgrade_d7_node_news
      1. NOTE: it will tell you what other items you need to migrate with that singular migration peice when you try to import it.


Custom Migrations