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