开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜