问题描述
尝试运行迁移时,出现错误Artisan migration
我已经在这里阅读了问题,还看到了要添加的注释:
doctrine/dbal":composer.json的require部分中的〜2.3
但是,我不知道发生了什么事.我几天前创建了表格,没问题.
在composer.son中添加该依赖项后,我不知道该怎么办.
我不想意外地更新其他任何软件包.
需要将 doctrine/dbal
依赖项添加到您的 composer.json
composer需要原理/dbal
有关更多信息,请检查 laravel#修改列
When trying to run a migration I get the error Artisan migration
I have read the questions here and also see the notes to add:
doctrine/dbal": "~2.3
in the requires section of composer.json
However, I don't understand what has happened. I created table a few days ago with no issue.
I can't figure out what to do after adding that dependency in composer.son.
I don't want to accidentally update any other packages.
The doctrine/dbal
dependency needs to be added to your composer.json
composer require doctrine/dbal
For more information check laravel #Modifying Columns
这篇关于工匠迁移错误“找不到Class'Doctrine \\ DBAL \\ Driver \\ PDOMySql \\ Driver'",的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!