系统没有看到我的迁移文件。我创建了新的迁移和php yii migrate --migratePath=@common/migrations/,然后没有新的规则。有人能弄明白吗?
php yii migrate --migratePath=@common/migrations/
lp0sw83n1#
将此应用于您的console/config/main.php(高级)
'controllerMap' => [ 'migrate' => [ 'class' => \yii\console\controllers\MigrateController::class, 'migrationPath' => [ '@common/migrations', ], ], ],
Yii迁移命名空间那你得打电话
yii migrate/up
1条答案
按热度按时间lp0sw83n1#
将此应用于您的console/config/main.php(高级)
Yii迁移命名空间
那你得打电话