Skip to content

fix: create SQLite data directory before drizzle commands#53

Merged
alexandrelam merged 1 commit into
mainfrom
fix/issue-38-drizzle-data-dir
Mar 25, 2026
Merged

fix: create SQLite data directory before drizzle commands#53
alexandrelam merged 1 commit into
mainfrom
fix/issue-38-drizzle-data-dir

Conversation

@alexandrelam
Copy link
Copy Markdown
Owner

Summary

  • create the SQLite parent directory from drizzle.config.ts before Drizzle CLI commands open the database
  • add a regression test covering the config bootstrap behavior
  • clarify in the README that npm run db:push creates data/ automatically

Closes #38.

Verification

  • npx vitest run test/drizzle-config.test.ts
  • npm run test:backend
  • npm run build
  • moved data/ aside and confirmed npm run db:push recreates it and succeeds on a clean start

@alexandrelam alexandrelam merged commit acfd2da into main Mar 25, 2026
2 checks passed
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.

Error on project startup

1 participant