Open divyenduz opened 4 years ago
This indeed looks like a test-utils problem - it creates the entries in both tables successfully, but then tried to insert data in the relation table that can not work.
Hello, I've the same problem, on create it runs ok, but on update upsert throws Unique constraint failed on the fields: (col1
,col2
,col3
)
This project is currently not maintained, so it is expected that stuff does not work right now unfortunately.
Note: most likely a test-utils bug as it is trying to create the same record twice in a relation table.
SQL table: https://github.com/prisma/database-schema-examples/blob/master/postgres/basic-blog/schema.sql#L12-L16
Model: https://github.com/prisma/introspection-engine-output/blob/test_utils/postgresql_public_test_utils/basic-blog.log#L16-L21
Relevant seed logs:
Full seed logs: https://github.com/prisma/introspection-engine-output/blob/test_utils/test-utils/results/postgresql_public_test_utils_basic-blog_stderr.log#L151-L193