[英]Laravel 5.5 Unknown database type enum requested Doctrine\DBAL may not support it
When I run CMD> php artisan migrate
当我运行
CMD> php artisan migrate
I got the below error 我收到以下错误
Changing columns for table "gift_cards" requires Doctrine DBAL;
更改表“ gift_cards”的列需要使用Doctrine DBAL。 install "doctrine/dbal".
安装“教义/ dbal”。 Unknown database type enum requested, Doctrine\\DBAL\\Platforms\\MySqlPlatform may not support it
请求了未知的数据库类型枚举,Doctrine \\ DBAL \\ Platforms \\ MySqlPlatform可能不支持它
I downloaded the dependency using composer, it will download version based on my laravel version 我使用composer下载了依赖项,它将根据我的laravel版本下载版本
"composer require doctrine/dbal"
the dependency added to my composer.json 依赖添加到我的composer.json
"require": {
"laravel/framework": "5.5.*",
"doctrine/dbal": "^2.5",
}
when I run the migrate I am getting the below error. 当我运行迁移时,出现以下错误。
CMD> php artisan migrate Migration table created successfully. CMD> php artisan migration迁移表创建成功。
In AbstractPlatform.php line 423: Unknown database type enum requested Doctrine\\DBAL\\Platforms\\MySqlPlatform may not support it.
在AbstractPlatform.php第423行中:请求的未知数据库类型枚举Doctrine \\ DBAL \\ Platforms \\ MySqlPlatform可能不支持它。
All my tables has database engine as InnoDB 我所有的表都有数据库引擎,如InnoDB
I added the dependencies to my composer.json 我将依赖项添加到了composer.json
"require": { "laravel/framework": "5.5.*", "doctrine/dbal": "^2.5", } “ require”:{“ laravel / framework”:“ 5.5。*”,“ doctrine / dbal”:“ ^ 2.5”,}
and run the composer install
command. 并运行
composer install
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.