© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3mo ago•
1 reply
ClutchPlay

Drizzle-kit migrations in Cloudflare Environment With Vitest

Using Vitest’s Cloudflare pool (which runs Miniflare) with PGlite, how can I run Drizzle migrations per test file? The usual migrate(db, { migrationsFolder }) or drizzle-kit push fails because Miniflare workers can’t access the filesystem.

I was opting to use PGLite so I could have isolated databases and keep my tests running concurrently. But this would require being able to run migrations per file instead of in a global setup which would have access to the full node api suite.

Is there an officially supported way to run migrations from in-memory or bundled SQL, or a recommended approach for Cloudflare test environments?”
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

issue drizzle-kit pull -> drizzle-kit-generate -> drizzle-kit migrations
Drizzle TeamDTDrizzle Team / help
9mo ago
no migrations for pgenums in drizzle-kit
Drizzle TeamDTDrizzle Team / help
3y ago
Error when running migrations in newest drizzle-kit
Drizzle TeamDTDrizzle Team / help
16mo ago
weird __drizzle_migrations row id (move from `drizzle-kit push` to `drizzle-kit migrate`)
Drizzle TeamDTDrizzle Team / help
9mo ago