language-tools
language-tools copied to clipboard
Offer correct Prisma type when detecting a mismatch between Prisma type and native type.
We already detect when the Prisma type is incompatible with the specified native type.
e.g. on Postgres
string_column String @db.BigInt would show a validation error.
A quick fix to convert the Prisma type to Int in this case would be nice. It could be based upon the native type actually existing for that database and then offer the correct Prisma type.
We have no capacity to tackle this in the next sprints so if anyone else has the capacity to, feel free to take it. We'll icebox it for now.