Repository navigation
Conversation
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: snapshot supabase/supabase@a5638ed supplied to reviewers (advisory, not a style pass).
Both independent reviews completed and reported zero findings. The checked-out code creates migration files exclusively and returns a collision error before opening the existing file for stdin. The regression test checks that the original SQL is preserved and stdout stays empty. The existing reference overlay remains accurate, and no CLI reference prose changed. Tests were not run because the checkout lacks installed dependencies.
Findings
No issues found.
Stats
Claude findings: 0 · Codex findings: 0 · Confirmed: 0 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
TL;DR
stops
supabase migration newoverwriting a migration that already has the same timestamp and namewhat might hurt the user?
running
migration new <name>twice inside one second, from a script, an agent or two terminals, truncated the first file and the piped sql replaced it, while both runs printedCreated new migrationand exited 0fixed by:
the file is now created exclusively, so a clash exits 1 with
migration file already existsand a hint to rerun a second later, leaving the existing migration untouchedref:
BREAKING CHANGE:
supabase migration new <name>now exits 1 instead of overwriting when a migration with the same timestamp and name already exists, wait a second and rerun to create it