Two months ago, I installed Drupal CMS for the first time when it was released. Since then, I haven't done any testing or made any changes. Today, I decided to try updating the Drupal core using the CMS interface.
I was running Drupal core version 11.1.1, while the latest available version is 11.1.4. To start the update, I went to /admin/reports/updates/update and saw the button Upgrade to 11.1.4.
Because I was testing on a local project, I didn't create any backups of either the code or the database. However, if you're doing this on a live site, be sure to follow the recommended instructions and create backups first.
After clicking the blue button, a batch process started, performing the necessary operations to update Drupal to the latest version.
Once the batch process finished, I had to click through a few more prompts to complete the core update and update the database. That was it—Drupal was updated without any issues.
When I checked my Git status, I noticed that the update process changed the Composer files, ensuring everything is accounted for. You just need to commit these changes to your repository, and you're good to go.
I'm very satisfied that everything worked smoothly. This functionality is a huge help—maybe not for hardcore developers, but for site builders and site owners who might not be deeply familiar with Drupal coding.
I ran this update manually, but Drupal also supports doing it automatically in the background without any user interaction.
That's something I plan to test in the future as well.
Important things to keep in mind:
- This module (Automatic Updates) only updates Drupal core, not contributed modules.
- For this module to work, Drupal must modify its code, but many managed hosting platforms, like Acquia and Pantheon, don't allow this; instead, use Automatic Updates locally and push changes to the host.
- If you want to update contrib modules as well, you need to enable the submodule called Automatic Updates Extensions. Then, go to the following page: /admin/reports/updates/automatic-update-extensions and update the modules manually. This will also modify your composer files, so you will need to commit the changes to the repository.
That's a wrap—stay tuned for more Drupal experiences and insights coming soon!