Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Migrating from Prisma gradually - Drizzle Team
DT
Drizzle Team
•
3y ago
•
14 replies
Cayter
Migrating from Prisma gradually
We
're in the middle of migrating away from Prisma to Drizzle which we just found out that Drizzle has its own naming convention for
FOREIGN KEY CONSTRAINT
FOREIGN KEY CONSTRAINT
.
To avoid surprises for this migration
, we
'd like to keep Prisma constraint names
, I looked into the
reference()
reference()
type definitions
, it seems that we don
't have a way to customise the
FOREIGN KEY CONSTRAINT
FOREIGN KEY CONSTRAINT
name
, is that correct
?
At the same time
, the current generated constraint name is longer than Postgres
's allowed length
. How can we workaround this
?
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Migrating from Prisma
DT
Drizzle Team / help
3y ago
Migrating from Prisma Schema
DT
Drizzle Team / help
3y ago
Help migrating raw query from prisma to drizzle
DT
Drizzle Team / help
3y ago
Migrating prisma schema to drizzle
DT
Drizzle Team / help
3y ago