Skip to content

refactor(core): move database schema ownership#29068

Open
thdxr wants to merge 5 commits into
devfrom
refactor/core-database-schema-ownership
Open

refactor(core): move database schema ownership#29068
thdxr wants to merge 5 commits into
devfrom
refactor/core-database-schema-ownership

Conversation

@thdxr
Copy link
Copy Markdown
Member

@thdxr thdxr commented May 24, 2026

Summary

  • move Drizzle schema files and historical migrations from packages/opencode into packages/core
  • add core-owned TypeScript migration service and generator
  • repoint opencode database table imports to core and remove opencode migration bundling/runtime
  • move v2 session service surface into core and keep legacy message/part IDs under session/legacy

Verification

  • bun typecheck (packages/core)
  • bun typecheck (packages/opencode)
  • bun test test/database-migration.test.ts (packages/core)
  • bun turbo typecheck (push hook)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant