Skip to content

Commit 156d9bb

Browse files
dmealingclaude
andcommitted
refactor(migrate-ts): simplify check-evolution
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 36d067f commit 156d9bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • server/typescript/packages/migrate-ts/src/diff

server/typescript/packages/migrate-ts/src/diff/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ export async function diff(
135135
// CHECK constraints are inlined into the CREATE TABLE DDL at emit time
136136
// (both postgres and sqlite support inline CHECK), so they ride on
137137
// `create-table.table.checks` rather than as separate add-check changes.
138-
// The diff intentionally never produces add-check / drop-check today;
139-
// existing-table enum-value evolution is deferred (see diffTableChecks
140-
// removal note in Pass 2).
138+
// For brand-new tables no add-check is emitted here; existing-table CHECK
139+
// evolution (add/drop on tables present on both sides) is handled by
140+
// diffTableChecks in Pass 2.
141141
}
142142
}
143143
// Pass 1b: tables present in actual but not expected → drop-table

0 commit comments

Comments
 (0)