Skip to content

fix(db): track the prisma directory for local drizzle commands - #58

Merged
neo773 merged 1 commit into
neo773:masterfrom
Nethrenial:fix/prisma-directory
Oct 6, 2026
Merged

neo773 merged 1 commit into
neo773:masterfrom
Nethrenial:fix/prisma-directory

Conversation

@Nethrenial

Copy link
Copy Markdown
Contributor

On a fresh clone, README step 3 (bun run db:migrate) fails before any database exists:

Error: ConnectionFailed("Unable to open connection to local database packages/macgamingdb-server/prisma/dev.db: 14")

packages/macgamingdb-server/prisma/ is not in the repository and drizzle-kit does not create parent directories, so the file URL cannot be opened. Committing a .gitkeep keeps the folder in the tree and fixes db:migrate, db:push and db:studio for new contributors without changing any scripts.

Verified from clean checkouts (worktrees sharing the installed dependencies):

  • master → bunx drizzle-kit migrate exits 1 with the error above
  • this branch → bunx drizzle-kit migrate applies all migrations

Also ran bun run lint, bun run format:check, bunx tsc --noEmit (root and packages/macgamingdb-server) and bun run test.

drizzle-kit does not create parent directories, so on a fresh clone README step 3 (bun run db:migrate) fails with SQLITE_CANTOPEN. A committed .gitkeep keeps the folder in the tree for db:migrate, db:push and db:studio.
@neo773
neo773 merged commit 348873b into neo773:master Oct 6, 2026
@neo773

neo773 commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants