@map field name swap causes "Field is already defined on model" error #8687
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/bug
A reported bug.
topic: validation
Milestone
Bug description
When using @Map to rename fields, you get the following error when the model has a name that is mapped to a table that has a different field of the same name.
How to reproduce
Expected behavior
There should be no error
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: