fix(db,auth): dedupe migration prefix 041 and fix main compile #227
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pms-293-dedupe-migration-prefix-041"
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?
Two
mainbreakages discovered while merging the Code-Review batch. Both fail theCheckjob, so every downstream mokosh-server PR is blocked until this lands.PMS-293 - duplicate migration prefix 041.
maincarried both041_rls_cover_tenantless_tables.sql(PMS-258) and041_portal_setup_tokens.sql(PMS-136); they were authored on separate branches that each picked041and the second merge created the collision.check-migration-prefixes.nufails andsqlx::migrate!rejects duplicate versions. Renumbered the portal migration to042(the two migrations touch disjoint tables, so reordering is inert; neither has been applied to a durable environment).PMS-294 - main does not compile. PMS-192 changed
LoginResponse.usertoOption<CurrentUser>but did not update thelogin_with_googlemfa_required branch (which arrived from a separate merge), leaving a bareCurrentUserwhereOptionis required. Set it touser: None, matching the passwordlogin()mfa_required branch and the documented invariant that the profile is withheld until the second factor is satisfied. CI did not catch this earlier because the migration-prefix check fails first and short-circuits.#PMS-293
#PMS-294