cleanup: compact blank-start database baseline #354
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
status:blocked
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
type:cleanup
type:docs
type:epic
type:release
type:research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta!354
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-307-compact-blank-baseline"
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?
Problem
Fresh databases still replayed the full historical migration chain, creating removed surfaces before later drop migrations cleaned them up. That made the blank-start schema harder to reason about after the #351/#308 retired-auth cleanup landed.
Solution
0000_blank_start_baseline, generated from the current single-owner schema.0001_deployed_schema_cleanup, with a timestamp after the previous chain so already-deployed databases can drop retired tables and rebuilduserswithout losing task/calendar/provider data.invite_linksschema export from the active schema.This PR is based on current
mainafter #351/#308, not the old stacked branch.Verification
nix develop --command pnpm exec vitest run tests/core/schema.test.ts tests/core/auth.test.ts tests/api/auth.test.ts tests/core/integration-config.test.ts tests/core/external-links.test.ts --reporter=verbosenix develop --command pnpm exec drizzle-kit generate --schema ./src/db/schema.ts --out ./drizzle --dialect sqlite --name check_noopnix develop --command just lintnix develop --command just testnix develop --command just buildCloses #307