Create a named enum type.
PostgreSQL only as a named type. MySQL has ENUM but as a column type written inline, and SQLite has neither — on both, the equivalent is a CHECK constraint listing the values, which addConstraint builds.
ENUM
CHECK
addConstraint
Create a named enum type.
PostgreSQL only as a named type. MySQL has
ENUMbut as a column type written inline, and SQLite has neither — on both, the equivalent is aCHECKconstraint listing the values, whichaddConstraintbuilds.