© 2026 Hedgehog Software, LLC

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

Error: There are multiple relations between "__public__.shareTransferHistory" and "client".

This just recently became a problem and I can't figure out why.
Here's my schema:
https://gist.github.com/aaronfulkerson/a73f3745ce04d0a2b62ffd26c6457833
I'm using relationName to disambigurate the relations on shareTransferHistory but I'm completely lost. I feel like this was working until very recently but can't figure out why it's suddenly broken.
Gist
Error: There are multiple relations between "__public__.shareTransf...
Error: There are multiple relations between "public.shareTransferHistory" and "client". - client.ts
Error: There are multiple relations between "__public__.shareTransf...
Solution
I needed to also add relationName to the other table.
Jump to solution
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

Error: There are multiple relations between "__public__.*" and "*". Please specify relation name
Drizzle TeamDTDrizzle Team / help
13mo ago
There are multiple relations between "places" and "medias". Please specify relation name
Drizzle TeamDTDrizzle Team / help
3y ago
Multiple relations
Drizzle TeamDTDrizzle Team / help
3y ago
Relations between tables unclear
Drizzle TeamDTDrizzle Team / help
2y ago