CakePHP SimpleTest enum problem
CakePHP1.3 with SimpleTest can't treat enum type column. How to resolve this problem.?
Not开发者_高级运维ice: Schema generation error: invalid column type enum(
ENUM is not supported by CakePHP
, because it only works with MySQL. And CakePHP Community want SimpleTest to be a generic system which should support all major databases systems to achieve platform independence.
Try switching it to varchar('10') or tinyint(1)
data types and control their values in model's $validate
精彩评论