简体   繁体   English

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

[英]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.

相关问题 请求的数据库类型未知,Doctrine\\DBAL\\Platforms\\MySQL57Platform 可能不支持。 Symfony 4 - Unknown database type enum requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it. Symfony 4 获取错误[Doctrine \\ DBAL \\ DBALException]请求了未知的数据库类型点,Doctrine \\ DBAL \\ Platforms \\ MySQL57Platform可能不支持它 - Getting error [Doctrine\DBAL\DBALException] Unknown database type point requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it 请求了未知的数据库类型json,Doctrine \\ DBAL \\ Platforms \\ MySQL57Platform可能不支持它 - Unknown database type json requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it “请求的数据库类型未知,Doctrine\\DBAL\\Platforms\\MySQL57Platform 可能不支持。” 运行 php artisan migrate 命令时 - “Unknown database type json requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it.” while running php artisan migrate command 请求的未知数据库类型枚举 doctrine - Unknown database type enum requested doctrine Laravel 5.1 请求的未知数据库类型枚举 - Laravel 5.1 Unknown database type enum requested Laravel 数据库迁移 - renameColumn 错误 - 请求的未知数据库类型枚举 - Laravel db migration - renameColumn error - Unknown database type enum requested Doctrine DBAL、diff 命令和枚举类型 - Doctrine DBAL, diff command and enum type 找不到Laravel 5.5类'Doctrine \\ DBAL \\ Driver \\ PDOPgSql \\ Driver' - Laravel 5.5 Class 'Doctrine\DBAL\Driver\PDOPgSql\Driver' not found Laravel Backpack - 未知数据库类型tsvector请求 - Laravel Backpack - Unknown database type tsvector requested
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM