Fix migration adding the cycle end date to memberships #560
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
technical improvement
UX Improvement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
local-it/mitgliederverwaltung!560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/mitgliederverwaltung-559"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #559
Description of the implemented changes
The changes were:
Upgrading an existing installation aborted during migrations: the migration that adds the
cycle_endcolumn to membership fee cycles failed with an error naming a fee interval (for example"yearly"), so the container never started. The interval is now resolved without depending on other parts of the application already being loaded, and an interval the migration cannot interpret stops it explicitly instead of storing a guessed cycle end.What has been changed?
Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
:erlang.binary_to_existing_atom("yearly", :utf8)raises, the old code path reproduces the reported error against real data, andbin/migrateon a database with existing cycles now completes with correct values including the leap-year case (2024-02-01 → 2024-02-29), no NULL rows, andcycle_endback underNOT NULL.