dev/core#2961 fix upgrade bug on civicrm_note + logging #22150
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
dev/core#2961 fix upgrade bug on civicrm_note + logging
Before
Reported issues with upgrade failure on 5.37 upgrade - these appear to be because we create a new field and then attempt to populate it before taking any action that would cause the corresponding log table field to be created
After
Create the new field in the log table straight after the field is created via the script
Technical Details
Normally we reconcile logging tables are the end - however in this case we try to populate it straight away ....
I did think we turned off logging before trying to upgrade?
Comments
https://lab.civicrm.org/dev/core/-/issues/2961