Skip to content

Instantly share code, notes, and snippets.

@juampynr
Last active Oct 30, 2018
Embed
What would you like to do?
Set up Drupal 8 and run the first migration
# 1. Download dependencies.
composer require drupal/migrate_tools:4.x-dev drupal/migrate_upgrade:3.x-dev drupal/migrate_plus:4.x-dev
# 2. Enable modules.
drush en -y migrate_tools,migrate_upgrade,migrate_plus
# 3. Generate a migration group.
drush migrate:upgrade --legacy-db-key=drupal7 --legacy-root=/var/www/drupal/drupal7 --configure-only
# 4. Export group into configuration and commit the files. Then review and commit the files.
drush config-export
# 5. Run configuration migrations.
drush -v migrate:import --execute-dependencies --tag=Configuration --group=migrate_drupal_7
# 6. Run content migrations.
drush -v migrate:import --execute-dependencies --tag=Content --group=migrate_drupal_7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment