-
-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REF] Add in function to retrieve Pre Upgrade messages in headless #25414
Conversation
(Standard links)
|
cf65833
to
40daec2
Compare
civibot, test this please |
Looks sensible. @seamuslee001 Are you working on a patch for a tool/entry-point that can be used to |
$upgrade->setPreUpgradeMessage($preUpgradeMessage, $currentVer, $latestVer); | ||
if (empty($this->preUpgradeMessage)) { | ||
$preUpgradeMessage = NULL; | ||
$upgrade->setPreUpgradeMessage($preUpgradeMessage, $currentVer, $latestVer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ug - this is a bit nasty that it is a pass-by-ref huh? Doesn't look like it is trivial to unravel though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is pass by reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's also a confusing name... but there are 3 distinct structures which include variations on this signature (CRM_Upgrade_Incremental_Base
and its subclasses; then also CRM_Upgrade_Form
; then also CRM_Upgrade_Incremental_General
).
@totten see civicrm/civicrm-drupal#663 I plan to do one for wp-cli as well |
Did an |
I pulled the merge trigger a bit hastily. Suggested revision: #25488 |
Overview
This makes it possible for CLI tools such as drush and wp cli to get the pre-upgrade message when doing database upgrades
Before
No way to get the pre upgrade messages just post
After
function to get the pre-upgrade message
ping @demeritcowboy @kcristiano @totten