© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
valou1525

drizzle-kit generate with dynamic Schema

Hello,
I work in a context where each dev has its own schema in the DB. When generating migrations with drizzle-kit generate, the migration files contain the hardcoded schema value

ex: CREATE TABLE "mySchema1"."myTable"

It makes it impossible to have a single set of migration files, independant of schemas, that all developers can run.

Do you see a way I could make this work ? Ideally, migration files could be generated with a placeholder schema that would be dynamically set when calling migrate().

Thanks 🙏
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

schemaFilter/tableFilter for drizzle-kit generate
Drizzle TeamDTDrizzle Team / help
5mo ago
Issues with drizzle-kit generate
Drizzle TeamDTDrizzle Team / help
2y ago
issue drizzle-kit pull -> drizzle-kit-generate -> drizzle-kit migrations
Drizzle TeamDTDrizzle Team / help
9mo ago
drizzle-kit generate error
Drizzle TeamDTDrizzle Team / help
8mo ago