5.20 Upgrade fails when CiviCase is enabled and you have an extension that calls hook_civicrm_pre/post and the hook function uses a class within the extension
Overview
5.20 Upgrade fails if you use an extension e.g. mailchimp extension and you have CiviCase enabled and you have a case type created that will be affected by the upgrade
Reproduction steps
- Create a case type with the roles of Benefit Specilalist, Spouse of, and Case Coordinator
- Install mailchimp extension latest version
- Try running the upgrade in the UI
- Upgrade stops after the CiviCase label step and doesn't progress and see a PHP error about missing class.
Expected behaviour
Upgrade works
Environment information
- CiviCRM: 5.20.0
- PHP: 7.2_
- CMS: Drupal 7.30