Skip to content
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

(dev/core#5365) Update civimix-schema #379

Merged
merged 1 commit into from
Dec 17, 2024
Merged

(dev/core#5365) Update civimix-schema #379

merged 1 commit into from
Dec 17, 2024

Conversation

totten
Copy link
Owner

@totten totten commented Dec 17, 2024

Backport civicrm/civicrm-core#30740 and other recent changes to civimix-schema. Fixes https://lab.civicrm.org/dev/core/-/issues/5642, https://lab.civicrm.org/dev/core/-/issues/5365

Before

When you have a custom upgrader (CRM/Foo/Upgrader.php) with a pending task...

  • If you explicitly run the upgrader (e cv updb), it works.
  • If you passively browse the web UI, it will not display notification to prompt you run the upgrade.

After

It will be both display the notification and also run the upgrade.

@totten
Copy link
Owner Author

totten commented Dec 17, 2024

Manually tried making an extension on 5.63.3 and 5.78.4 -- with a schema upgrader. Seemed to fix it.

QA procedure:

## Setup - Before this PR
civix generate:module hello
cd hello
civix generate:upgrader
vi CRM/Hello/Upgrader.php ## define a new step

## In web UI, check to see if there's a web-alert.
## ==> With old code, the web-alert is missing.
## Then apply this PR and run `civix upgrade`, the
## ==> With new code, the web-alert is provided.

@totten totten merged commit 7f13bc7 into master Dec 17, 2024
1 check passed
@totten totten deleted the master-civimix branch December 17, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant