Last active
October 30, 2018 23:16
-
-
Save juampynr/312922c7e6f6f8bb9aaf96e84b06597b to your computer and use it in GitHub Desktop.
Set up Drupal 8 and run the first migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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