Skip to content

Commit 8ad60d9

Browse files
committed
test(cli): the plan's --json key set carries the nullableTenantColumns advisory
Claude-Session: https://claude.ai/code/session_01RXxXFcq659RGJE6SsXAc3u Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4320293 commit 8ad60d9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎packages/cli/src/commands/migrate/plan.apply-limit.test.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
* 2. The footer offers `--allow-destructive` only for a destructive entry the
2525
* database can apply, and names how many listed entries it cannot.
2626
* 3. CONTROL: a driver that declares nothing reads exactly as before.
27-
* 4. The `--json` document is the report, unchanged: the same keys, and each
28-
* entry's message as the differ wrote it.
27+
* 4. The `--json` document is the report, unchanged: the same keys (the
28+
* ADR-0131 D1 `nullableTenantColumns` advisory among them, which these
29+
* limits do not move), and each entry's message as the differ wrote it.
2930
*
3031
* `bootSchemaStack` is stubbed, so this runs without a database; the same
3132
* cases run against a real `sqld` in `apply.remote-face.integration.test.ts`.
@@ -245,7 +246,7 @@ describe('a driver that declares what its apply door cannot perform', () => {
245246
const { payload, exitCode } = await run(['--json']);
246247
expect(exitCode).toBe(0);
247248
expect(Object.keys(payload).sort()).toEqual(
248-
['changes', 'database', 'databaseSource', 'duration', 'managedTables', 'pending', 'schemaSync', 'total', 'unmanagedTables'],
249+
['changes', 'database', 'databaseSource', 'duration', 'managedTables', 'nullableTenantColumns', 'pending', 'schemaSync', 'total', 'unmanagedTables'],
249250
);
250251
expect(payload.changes.map((c: Entry) => c.message)).toEqual([DROP.message, TIGHTEN.message, RELAX.message]);
251252
}, CASE_TIMEOUT_MS);
@@ -430,7 +431,7 @@ describe('#24925 — a database the organization-ownership ceremony has not veri
430431
const { payload, exitCode } = await run(['--json']);
431432
expect(exitCode).toBe(0);
432433
expect(Object.keys(payload).sort()).toEqual(
433-
['changes', 'database', 'databaseSource', 'duration', 'managedTables', 'pending', 'total', 'unmanagedTables'],
434+
['changes', 'database', 'databaseSource', 'duration', 'managedTables', 'nullableTenantColumns', 'pending', 'total', 'unmanagedTables'],
434435
);
435436
expect(payload.changes.map((c: Entry) => c.message)).toEqual([INDEX.message, ORG_JOB.message, LEGACY.message]);
436437
expect(getService).not.toHaveBeenCalled();

0 commit comments

Comments
 (0)