开发者

enum field error while baking model all

开发者 https://www.devze.com 2023-03-13 01:42 出处:网络
Irun the command cake bake model alland got the below error. Schema generation error: invalid column type enum(\'Used\',\'New\') does not exist in D开发者_如何学PythonBO in /var/www/showcase_admin/cak

I run the command cake bake model all and got the below error. Schema generation error: invalid column type enum('Used','New') does not exist in D开发者_如何学PythonBO in /var/www/showcase_admin/cake/libs/model/cake_schema.php on line 601


I believe Cake doesn't support enum , as it is a vendor specific datatype

There are several user submitted solutions around this problem; one such is here. I haven't used it but I'm sure you will be able to find something relevant with a bit of digging.

0

精彩评论

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