Closed noook closed 1 month ago
we've checked locally and it works as expected, we think it's related to your drizzle.config.ts
file and seems like schema
path does not include b/server/database/schemas/prestations.ts
file
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 drizzle-kit@0.22.0
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"