Skip to content

Instantly share code, notes, and snippets.

@juampynr
Last active October 30, 2018 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juampynr/312922c7e6f6f8bb9aaf96e84b06597b to your computer and use it in GitHub Desktop.
Save juampynr/312922c7e6f6f8bb9aaf96e84b06597b to your computer and use it in GitHub Desktop.
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