fix(checks): de-duplicate 051 migration prefix and thread AuditCtx through QA seed #286
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/checks-workflow-5799c342"
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?
The parallel merges that landed on main collided in two mechanical ways that the check.yml gate caught: three migrations all claimed prefix 051 (sqlx keys its ledger on the prefix, so the applied version was ambiguous), and the operator QA seed (src/modules/seed/qa.rs) had not been updated for the new AuditCtx parameter added to several project/time-tracking service methods nor for the new CreateProjectRequest.actual_end_date field, so the lib failed to compile.
Renumber the two later-added migrations to 052 (mileage_entries) and 053 (tax_rate_widen_column) in creation-time order, leaving 051 for payments_amount_positive, and update the doc comment in mileage_tracking/mod.rs that cited the old filename. Pass the existing system AuditCtx into create_project / create_project_phase / create_task / create_time_entry, construct a local system ctx for the create_work_type / create_task_status helpers, and set actual_end_date: None on both seeded (non-completed) QA projects.
#PMS-375
Superseded: the qa-seed compile fix + 051 migration-prefix de-duplication landed on main via #288 (kept 051_mileage_entries at 051, renumbered the two never-deployed migrations). Closing this duplicate.
Pull request closed