MySQL: TinyInt
must be compatible with Int
and Boolean
scalar types
#1257
Labels
domain/schema
tech/engines/datamodel
Issue about parsing/validation/rendering of the Prisma schema
tech/engines/introspection engine
Issue in the Introspection Engine
tech/engines/migration engine
Issue in the Migration Engine
tech/engines
Issue for tech Engines.
topic: native types
Currently we allow
TinyInt
only to be used on fields of typeBoolean
. This is problematic for introspection CI and hence we want to lift that restriction and also allow it forInt
.Goal:
The following schema should be valid.
SQL Mapping Rules:
Int @db.TinyInt
is mapped totinyint
in the database without display width.Boolean @db.TinyInt
is mapped totinyint(1)
in the database.Steps:
The text was updated successfully, but these errors were encountered: