Laravel 5.5 请求的未知数据库类型枚举 Doctrine\DBAL 可能不支持

Laravel 5.5 Unknown database type enum requested Doctrine\DBAL may not support it

当我运行CMD> php artisan migrate

我收到以下错误

Changing columns for table "gift_cards" requires Doctrine DBAL; install "doctrine/dbal". Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it

我使用composer下载依赖,它会根据我的laravel版本

下载版本
"composer require doctrine/dbal"

添加到我的依赖项composer.json

"require": {
    "laravel/framework": "5.5.*",
    "doctrine/dbal": "^2.5",
}

当我 运行 迁移时,出现以下错误。

CMD> php artisan 迁移 迁移 table 创建成功。

In AbstractPlatform.php line 423: Unknown database type enum requested Doctrine\DBAL\Platforms\MySqlPlatform may not support it.

我的所有 table 都具有 InnoDB 数据库引擎

我将依赖项添加到 composer.json

"require": { "laravel/framework": "5.5.*", "doctrine/dbal": "^2.5", }

和 运行 composer install 命令。