© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
timetc

Custom SQL in migrations

TLDR: can I change the SQL in migrations or is that considered bad practice?

Alright, I need some advice. I am still pretty new to Drizzle but I like it a lot so far. The challenge is that I want to use it with SingleStore. It should in general be compatible with MySQL (sauce: https://docs.singlestore.com/cloud/developer-resources/connect-with-application-development-tools/connect-with-node-js/).

They have some time series functionality of course, but I think that can be solved with the magic sql operator. My main concern is that they have custom indexes and table types.

Would it be an option to generate migrations from the CLI, adjust the SQL and work with that? Or is that considered bad practice? If so, I would love to hear how I can approach this.

I would love to hear your ideas, thank you!
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

How should I do custom migrations?
Drizzle TeamDTDrizzle Team / help
2y ago
Can I install an extension in in psql through custom migrations?
Drizzle TeamDTDrizzle Team / help
14mo ago
wrap migrations in transaction
Drizzle TeamDTDrizzle Team / help
2y ago
Share migrations in monorepo
Drizzle TeamDTDrizzle Team / help
3y ago