Skip to content

Localgov Microsites, upgrading from Drupal 10 to Drupal 11.

Upgrade Status

The Upgrade Status module will help determine what needs to be done before you can upgrade to Drupal 11.

composer require 'drupal/upgrade_status:^4.0'
drush en upgrade_status
drush cr

Then visit /admin/reports/upgrade-status to check the status of the site.

PHP and database requirements

Important: you will need a minimum of PHP 8.3 and MariaDB 10.6 or equivalent.

See drupal.org for more detailed requirements for Drupal 11.

Module compatibility:

To be removed:

Incompatible modules:

  • date_recurr - this will be upgraded and can be ignored.
  • localgov_microsites - this will be upgraded and can be ignored.

Check any other modules or themes that might also need upgrading.

Upgrade the codebase

To upgrade your site you will be using Composer to update some of the required packages for Drupal 11 support and then updating everything.

composer require drupal/localgov_microsites:^5.0 --update-with-dependencies --no-update
composer require drupal/core-recommended:^11.3 drupal/core-composer-scaffold:^11.3  drupal/core-project-message:^11.3 --update-with-dependencies --no-update
composer require drupal/core-dev:^11.3 brianium/paratest:^7.3 --dev --update-with-dependencies --no-update
composer require 'drush/drush:^13.0' --no-update
composer update
drush updb
drush cr

If you use config management to commit and deploy your config, you will also want to export the updated configuration at this point.

drush cex