Every major release calls for updating the Drupal core.
New improvements or additions are released as patches, and website administrators are required to update the site on a regular basis. And keeping your Drupal site updated is one of the best ways of ensuring its security and stability.
Thus, it’s a good idea to update your site with the current release, i.e., Drupal 9.
Along with adding new features, the Drupal core release also updates the modules to make them compatible with the latest version. Therefore, updating the core becomes crucial in case you employ these modules for your website.
It is good to update your Drupal core to the latest version as and when required.
Secondly, with every release, bugs are removed from the core code of the CMS. This ensures your site’s security and uninterrupted functioning.
Now that you have decided to update your Drupal core let’s explore the options in detail.
The official Drupal site gives us a standard manual update procedure to update the core manually.
Drush has already removed the support for updating the Core. In Drush 9 and Drush 10 (the current version), all the up commands pm-update, pm-updatecode and pm-updatestatus are deprecated, and thus, it no longer supports updating Drupal.
Now, you need to use Composer (see below) along with Drush to update your website.
Composer, the dependency manager for PHP, is used for updating and installing packages (modules) in Drupal. It helps declare and manage libraries and core dependencies such as Symfony components and certain packages.
First, install Composer. Make sure all your modules are secure and supported, and compatible with the Drupal 9 version.
Any major release will pose some challenges. Being cautious and prepared in advance can save you a lot of time and effort.
Here are a few considerations you can keep in mind during the process:
Let’s initiate the process with some pre-requisites considered:
The standard process of updating as per Drupal’s official site is as follows:
I hope this helps you with updating your Drupal Core. For more, get in touch with our Drupal experts!