Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Drizzle-seed: Warning on relations #4242

Open
1 task done
scamden opened this issue Mar 7, 2025 · 0 comments
Open
1 task done

[BUG]: Drizzle-seed: Warning on relations #4242

scamden opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@scamden
Copy link

scamden commented Mar 7, 2025

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.38.4

What version of drizzle-kit are you using?

0.30.2

Other packages

No response

Describe the Bug

This warning:

`You are providing a one-to-many relation between the '${relation.refTable}' and '${relation.table}' tables,\n`

Happens when seeding a schema using both relations and foreign keys which the docs explicitly state can be used together:

What this means is relations and foreign keys can be used together

from https://orm.drizzle.team/docs/relations#foreign-keys

Does this warning indicate that I need to change something? If not could I please turn it off? it's very large block of noise in my tests. Thanks! drizzle is awesome!

@scamden scamden added the bug Something isn't working label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant