-
-
Notifications
You must be signed in to change notification settings - Fork 602
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]: multiple constraints not added (only the first one is generated) #2341
Comments
we've checked locally and it works as expected, we think it's related to your if you can provide a minimal repro example - would be perfect |
I have a barrel file reexporting every schema files that can't be it, I'll try to provide the reproduction asap |
@AlexBlokh You can check the reproduction here: https://github.com/noook/drizzle-fk-reproduction I have documented the steps in the README, feel free to reach me if something doesn't work as expected. I could reproduce with this repository. |
fixed in |
Is drizzle-kit public ? I can't find it, I'm curious about the change |
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.20.18
Describe the Bug
When adding multiple constraints on a table, only the first one is generated in the migration:
Diff:
Migration generated:
Expected behavior
All the constraints are added in the migration (Missing constraints on
companyInfo
+prestationId
Environment & setup
Mac OS
Node: v20.11.0
Supabase database (Postgres)
Driver: pg: "^8.11.5"
The text was updated successfully, but these errors were encountered: