Commit ea545a4
fix(migrate-ts): review round 1 — comment/test-name accuracy, dialect arg
Three one-line fixes from review of the serial-identity default-diff fix:
- diff/index.ts: the replacement comment inverted its own causal clause
("Left undiffed, that surfaced as ... DROP DEFAULT" claims skipping the
diff produced the bug -- the exact inverse; the bug was the case being
left DIFFED). Fixed to "Left diffed".
- diff-uuid-identity-default.test.ts: the increment-PK regression-guard test
name asserted "it never had a DEFAULT", the same false doctrine this
change disproved. Renamed to "(no live default at all)".
- diff-serial-identity-default.test.ts: the new unit tests called diff()
with no `dialect` for a Postgres-only bug. This repo's standing rule is
that omitting `dialect` runs a different pipeline -- pass it always. Both
diff() call sites now pass `dialect: "postgres"`, matching the
integration test.
No production behavior change beyond the comment; the two test edits are
name/argument-only and do not change what either test asserts.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015TqsuDye2SfXGf43vuoD3n1 parent 3a3317a commit ea545a4
3 files changed
Lines changed: 4 additions & 4 deletions
File tree
- server/typescript/packages/migrate-ts
- src/diff
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments