feat(db): migrate task-store.ts to Drizzle (separate tasks.db client) #858
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!858
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "code-lead/847"
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?
Closes #847
Migrates
task-store.tsto Drizzle on top of thetasks.dbhandle.db/client-tasks.ts—ormTasks()Drizzle wrapper pinned togetTaskDb()schema/tasks.ts—task_historyDrizzle schema (snake_case bridge style)Test plan
task-store.test.ts+history-contract.test.ts+migrate.test.tsgreenjust qaclean (typecheck + biome)CI still pending at review time (run #3075, sha
05e614f). Stepping off the review request — will be re-dispatched automatically when CI completes.Clean mechanical migration — schema, client wrapper, and all 11 query fns correct.
nit:
onConflictDoUpdatepassesidin the SET clause (harmless in SQLite, same as old INSERT OR REPLACE).