jordankaiser
1/2/2020 - 10:28 PM

Drupal Update Process

Drupal Update Process

Only updating security updates.

  1. Run drush pm:security to get a list of security updates.
    1. You may need to composer require drush/drush if it's not install already.
  2. For each module in the list run composer update drupal/module_name.
    1. For core updates use run composer update drupal/module_name --with-dependencies.
    2. This will update according to the semantic versioning.
  3. If you need to update beyond the limitations of the semantic versioning:
    1. Either manually modify composer.json or try something like composer require drupal/core:"~8.8.1". I was not able to get the require method to work.
  4. Run drush updb.
  5. Run drush cr.
  6. Check site. If everything is good run composer update --lock and commit the composer files.
  7. On other environments, after running svnu, you can install updates by running composer install.