开发者

CakePHP SimpleTest enum problem

开发者 https://www.devze.com 2023-01-28 12:34 出处:网络
CakePHP1.3 with SimpleTest can\'t treat enum type column. How to resolve this problem.? Not开发者_高级运维ice: Schema generation error: invalid column type enum(

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

精彩评论

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

关注公众号