Happy new year! It's time for another major Drupal upgrade. Don't want to be a late adopter but waiting for Drupal Gutenberg
to properly update to D11 is a deal breaker. Anyway, here is what I do with this installation.
- Fix theme compatability with D11.
- Remove
require-dev
section fromcomposer.json
. Unexpected dependency here! - Remove
drush/drush
. Again, this blocks an upgrade.
composer remove drush/drush --no-install
- Test with
dry-run
and upgrade. The recommended update command doesn't work somehow.
composer update "drupal/core-*" -W --no-install --dry-run
composer require composer/installers:^2.0 -W --no-install
composer require drupal/core-recommended:^11 drupal/core-composer-scaffold:^11 drupal/core-project-message:^11 -W --no-install
composer update --no-dev
- Reinstall
drush/drush
.
composer require drush/drush --no-install
composer update --no-dev
- Update database with
drush
.
sudo ./vendor/bin/drush updatedb
Wow, more painful than expected. If you want to remove old PHP CLI, it is safe to do.
Tags