- marked as enhancement
- changed status to resolved
Boolean like Enum for all other
Issue #1589
resolved
"Enum type now works using VARCHAR + CHECK constraint for all other" Now SA uses SMALLINT without CHECK to create Boolean columns in dialects not having native BOOLEAN type. I suggest using CHECK (value IN (0,1)) for Boolean too "for all others".
Comments (2)
-
repo owner -
repo owner - removed milestone
Removing milestone: 0.6.0 (automated comment)
- Log in to comment
Did a refactoring of the ENUM logic to simplify in f9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c, the Boolean change is in 7dc4df8a68eafd406e7378eedbb9c26188611a5c. This includes removing all of the dialect specific Boolean types from currently supported dialects and putting common logic into types.Boolean. The whole feature isn't supported on MySQL since they don't have CHECK constraint.