Update Drupal 7 to 8

Make a standard drupal 8 installation and enable all addons/modules/themes on the new site you require.

Make sure you have the following modules enabled:

  • migrate_plus
  • migrate_tools
  • migrate_upgrade

I use drush in a multisite configuration:

drush -l https://uri migrate-upgrade --legacy-db-url=mysql://password@localhost/dbname --legacy-root=https://drupal7uri  --configure-only
drush -l https://uri migrate-import --all

Update Drupal installation

For newer drupal >= 8 using composer:

git add .
git commit -m "Before automatic update using script at: `date`."
composer update -n drupal/core-recommended --with-dependencies
composer update -n
# repeat this for every site:
echo Update
./vendor/bin/drush updatedb --uri --yes
./vendor/bin/drush cache-rebuild --uri
./vendor/bin/drush config-export --uri --yes
drupal/update.txt · Zuletzt geändert: 2021/12/27 16:24 von