You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code is meant to create a simple 1:1 relation where user has a stripe account and stripe account has a user. However, stripe account ends up having a "users" column in addition to the "user" column:
The extra "users" column does not work. Querying it with
bitofbreeze
changed the title
[BUG]: 1:1 relation ends up with extra "many" column
[BUG]: 1:1 relation ends up with extra "many" column with SQLite
Aug 27, 2024
bitofbreeze
changed the title
[BUG]: 1:1 relation ends up with extra "many" column with SQLite
[BUG]: 1:1 relation ends up with extra "many" column — SQLite
Aug 27, 2024
What version of
drizzle-orm
are you using?0.33.0
What version of
drizzle-kit
are you using?0.24.2
Describe the Bug
The following code is meant to create a simple 1:1 relation where user has a stripe account and stripe account has a user. However, stripe account ends up having a "users" column in addition to the "user" column:
The extra "users" column does not work. Querying it with
gives the error
There is not enough information to infer relation "stripeAccount.users"
. Querying the "user" column works normally.Here's the code:
Expected behavior
Stripe account to only have one relational column called "user".
Environment & setup
No response
The text was updated successfully, but these errors were encountered: