language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Offer correct Prisma type when detecting a mismatch between Prisma type and native type.

Open do4gr opened this issue 4 years ago • 1 comments

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.

do4gr avatar Feb 09 '21 12:02 do4gr

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.

martzoukos avatar Feb 10 '21 16:02 martzoukos