ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Teamโ€ข3y agoโ€ข
2 replies
midi

Specifying foreign key names in Schema

After introspecting from a database, and generating new schema with changes, the existing foreign key constraints get dropped and readded (arguably with a better name, but ignore that pepe_shy )

is there a way to avoid/bypass this behaviour? for example, by manually specifying the name of the constraint in schema
image.png
image.png
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

foreign key
Drizzle TeamDTDrizzle Team / help
3y ago
Schema is "wrong" resulting in "foreign key mismatch" error
Drizzle TeamDTDrizzle Team / help
2y ago
introspecting database different foreign key names when creating migration.
Drizzle TeamDTDrizzle Team / help
2y ago
foreign key mismatch
Drizzle TeamDTDrizzle Team / help
2y ago