Skip to content

Fix production migration for legacy timestamps - #19

Merged
PengfanZ merged 1 commit into
mainfrom
codex/fix-production-migration
Aug 9, 2026
Merged

Fix production migration for legacy timestamps#19
PengfanZ merged 1 commit into
mainfrom
codex/fix-production-migration

Conversation

@PengfanZ

@PengfanZ PengfanZ commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • repair the exact legacy createdAt: "Just now" marker before strict snapshot validation
  • advance repaired activity revisions so active clients fetch the corrected snapshot
  • preserve existing Live expiry timestamps and all expense/member/balance data

Root cause

Production contained 27 expenses created by an older client that persisted a display label instead of an ISO timestamp. Every other strict snapshot invariant passed. The release migration correctly stopped at constraint validation without deploying the Edge Function or Pages artifact.

Verification

  • reproduced against a database reset to the migration immediately before this release
  • inserted a production-shaped legacy snapshot and applied the pending migration successfully
  • verified repaired timestamp, revision increment, validated constraint, and unchanged expiry
  • clean full migration reset passed
  • 191 pgTAP backend contracts passed
  • database lint reported no schema errors

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tally-ai-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: b86f2ae
Status: ✅  Deploy successful!
Preview URL: https://a3c7ef47.tally-ai-preview.pages.dev
Branch Preview URL: https://codex-fix-production-migrati.tally-ai-preview.pages.dev

View logs

@PengfanZ
PengfanZ merged commit b11e75f into main Aug 9, 2026
4 checks passed
@PengfanZ
PengfanZ deleted the codex/fix-production-migration branch August 9, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant