* test(storage): guard against duplicate goose migration version prefixes Statically scans embedded migration filenames for repeated numeric version prefixes and fails with a clear message, catching the class of bug from #333 (two PRs adding 0014_*.sql independently) before goose.Up() would panic at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(storage): dedupe migration versions by goose's parsed int64, not raw string versionPrefix compared raw filename prefixes, so 014_x.sql and 0014_y.sql were treated as distinct even though goose.NumericComponent parses both to version 14 and panics on the collision. Use goose.NumericComponent directly so the test enforces goose's actual collision rule. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(storage): trim PR-specific framing from migration version test comment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cmd | ||
| internal | ||
| .golangci.yml | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| sqlc.yaml | ||