feat(db): drizzle setup + nuke 17 hand-rolled migrations #854
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!854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "code-lead/839"
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?
Foundation for the ORM-migration milestone —
ensureSchemanow applies a checked-in0000_init.sqlsnapshot via a Drizzle-style runner, and the 17 hand-rolledrunXxxMigrationfiles are gone.Test plan
bun x turbo run typecheck— cleanbun test— 3101 pass, 0 fail (addedmigrate.test.ts: bootstrap equivalence, idempotency, assume-up-to-date branch, per-DB filename filtering)just db-check— agents + tasks both ok~/.local/state/claude-hooks/{agents,tasks}.dbbefore deploying, per the ACCloses #839
just— base image already has itAll AC met. Migration runner is clean: sentinel-table "assume up-to-date" branch correctly handles pre-Drizzle live DBs without re-firing CREATE TABLE. Tests cover bootstrap equivalence, idempotency, assume-up-to-date, and per-DB filtering. CI green on all 4 jobs.
Nit (non-blocking):
as unknown as never[]cast inmigrate.ts:117is a Bun SQLite API workaround — acceptable but worth noting for future cleanup.