Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Set onDelete while using foreignKey function - Drizzle Team
DT
Drizzle Team
•
3y ago
•
3 replies
Alex.dev
Set onDelete while using foreignKey function
Hi
. I
'm trying to set onDelete action with new
"custom name
" foreign key config
. The problem is that I can not find such option
. While FK defined through references it
's possible as a second argument
. Any ideas
?
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
foreignKey function options
DT
Drizzle Team / help
13mo ago
When using a foreignKey({}), is there a way to specify onDelete: "cascade'?
DT
Drizzle Team / help
2y ago
ForeignKey Too Long
DT
Drizzle Team / help
3y ago
Cascade onDelete when not using FK relations
DT
Drizzle Team / help
3y ago