feat(db): migrate claude_sdk_sessions to Drizzle #857
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "code-lead/848"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Last raw-SQL module in the database layer; rewrites every fn on top of
orm()against a newschema/sessions.tsmirroring the existing CREATE TABLE shape.Test plan
bun test sessions.test.ts— 20/20 green (sliding TTL, LIKE-ESCAPE, cross-forge isolation, concurrent writes, dropAllForIssue, listLiveSessionIds)bun x turbo run typecheckcleanbiome checkclean on touched filesCloses #848
Schema mirrors SQL shape exactly; all 6 DB functions correctly rewritten to Drizzle.
dropAllForIssueLIKE-escape logic preserved with wildcards folded into params. CI green (qa, qa-1, db-schema, dockerfile).