1
我几乎每次使用CakePHP时都使用Migrations,我从来没有遇到过任何问题。CakePHP 3迁移插件运行bin/cake时出错迁移迁移
然而这一次,我有一个问题想请执行以下命令
bin/cake Migrations migrate
我创造了使用
bin/cake bake migrations CreateTaxes state:string[5] ...
成功创建该文件的文件,但是当我运行命令迁移,我收到以下错误:
PHP Fatal error: Class Migrations\CakeAdapter contains 1 abstract method
and must therefore be declared abstract or implement the remaining methods
(Phinx\Db\Adapter\AdapterInterface::getVersionLog) in
/var/www/taxes/website/vendor/cakephp/migrations/src/CakeAdapter.php
on line 670
我弄不明白为什么它我抛出这个错误并且不允许命令完成。对于Phinx,我已经查看了CakeAdapter.php
和AdapterInterface.php
。
感谢您的回复,我也有这个问题kk –
不客气!这很奇怪......我很高兴CakePHPigrations开发人员很快修复它。 –