phinx: You probably used curly braces to define migration path in your Phinx configuration file, but no directories have been matched using this pattern. You need to create a migration directory manually.

这是因为phinx配置文件中的文件目录和实际文件目录不匹配或不存在导致的错误信息。

如下配置文件需要在项目根目录中有database文件夹,并且在database文件夹内有migrations和seeds文件夹。确保目录正确后运行phinx相关命令即可。

return
[
    'paths' => [
        'migrations' => 'database/migrations',
        'seeds' => 'database/seeds'
    ],

Was this helpful?

0 / 0

发表回复 0