fix(core): commit generated migration for session directory index - #244
alltomatos wants to merge 8 commits into
Conversation
`unit (linux)` is red on `dev` itself: the "declared schema has no ungenerated migrations" check fails because `session_directory_time_created_id_idx` is already declared in the schema source but its generated migration (schema.json/schema.gen.ts/migration.gen.ts + the migration file itself) was never committed on this branch. Reproduced locally: `bun test test/database-migration.test.ts` fails on a clean `dev` checkout with "Core schema has ungenerated database migrations." Ran `bun script/migration.ts` from packages/core to generate the missing migration; the only diff is the new index's migration entry, nothing else changed. Verified: the migration test and the full `packages/core` suite pass after this (1135 pass, 2 pre-existing unrelated failures in util.flock/util.effect-flock caused by running as root in this sandbox, not by this change). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
…json Byte-for-byte fixup after the previous commit — the generator's output has no trailing newline; my previous push added one by mistake.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
…nerator Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
Ports PR #244 into this PR so its own unit(linux) check goes green now instead of waiting on #244 to merge into dev — this is a base-branch-wide failure (see the standing-down comment on this PR), not caused by this PR's own changes. No-ops once dev carries #244. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
…ependent Ports PR #237 into this PR so its own unit(linux) check goes green now instead of waiting on #237 to merge — this is the other base-branch-wide failure on dev (see standing-down comment on this PR), not caused by this PR's own changes. No-ops once dev carries #237. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
|
Generated by Claude Code Generated by Claude Code |
|
Closing — this duplicates #240, opened ~10 hours earlier by another session for the exact same root cause (the same missing Generated by Claude Code Generated by Claude Code |
Issue for this PR
Closes #243
Type of change
What does this PR do?
unit (linux)is red ondevitself: the "declared schema has no ungenerated migrations" check inpackages/core/test/database-migration.test.tsfails becausesession_directory_time_created_id_idxis already declared inpackages/core/src/database/schema.ts, but its generated migration (schema.json,schema.gen.ts,migration.gen.ts, and the migration file itself) was never committed.Reproduced locally on a clean
devcheckout:bun test test/database-migration.test.tsfails with "Core schema has ungenerated database migrations." Ranbun script/migration.tsfrompackages/coreto generate the missing migration — the diff is purely the new index's generated migration entry, nothing else changed.How did you verify your code works?
bun test test/database-migration.test.tsfrompackages/core: 16 pass, 0 fail (was 1 fail before this fix).packages/coretest suite: 1135 pass; 2 pre-existing failures inutil.flock/util.effect-flockare unrelated to this change (caused by running the tests as root in this sandbox).git push, so every commit here went through the GitHub API — see PR fix(provider): complete Bedrock ARN/DeepSeek and SSE reader-cancel upstream ports #241 for why).Screenshots / recordings
N/A — generated database migration files, no UI change.
Checklist
This PR was opened by an unattended scheduled sync run — please review before merging.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SHQKcGH7ayRe8UHJ9CAPQJ
Generated by Claude Code