Restore civicrm_action_schedule.limit_to
(5.50)
#23497
Merged
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
(Updated variant of @monishdeb's #23478. Equivalent to #23490 on 5.49-stable.)
Restore the schema for field
civicrm_action_schedule.limit_to
to allowNULL
values. Attempt to reinstateNULL
values (where possible). Warn about any records which may have changed.See also:
Before
limit_to
is not nullablelimit_to
cannot be saved withnull
5.48.2 ==> 5.49.1
) will munge data; it coerces fromlimit_to=null
to0
.After
limit_to
is nullable (as in <=5.48)limit_to
can be saved withnull
5.48.2 ==> 5.49.2
, it properly preserves data.5.48.2 ==> 5.49.1 ==> 5.49.2
, then the first upgrade already munged data. The second upgrade remediates by:limit_to=0 AND group_id=NULL AND recipient_manual=NULL
)limit_to=0
even though their 5.48Comment
This does NOT accommodate current/recent RC testers. Anyone who has deployed 5.50-rc on would need to re-run the upgrade, starting from 5.49-stable (or earlier). (Mattermost discussion)