Upgrade fails for 4.6 => 5.29 during status-check
Overview
New upgrade error when going from 4.6=>5.29.
Reproduction steps
- Install Civi 4.6 from git. (Requires temporarily setting up PHP 5.6.)
- Switch to Civi 5.29 from git. (Requires switching back to PHP 7.1+.)
- Note: The codepath depends on the status-check timer. It arose organically for me, but to reproduce reliably, you may need to coerece
CRM_Utils_Check::CHECK_TIMER
to a low value like1
.
Current behavior
The problem is that civicrm_status_pref
didn't exist in 4.6, and we haven't run the upgrader yet.
Guess: Perhaps the try/catch block from https://github.com/civicrm/civicrm-core/commit/185a0768689374ce2d2703875a855d990c197728 was also handling the case of the non-existent table?
Expected behavior
Status check fails gracefully.
Environment information
- CiviCRM: 5.29
- PHP: 7.1
- CMS: WP
- Database: _MySQL 5.6