Closed tokiaquino closed 7 years ago
You need the latest version of the package, dev-master
How to do that @igor-chepurnoi , some config in composer.json? I'm very new with composer and git
Just remove cyberz
package from your project and update console.php configuration as follows:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
'@app/migrations',
'@vendor/yii2mod/yii2-cms/migrations',
'@vendor/yii2mod/yii2-cron-log/migrations',
'@vendor/yii2mod/yii2-user/migrations',
'@vendor/yii2mod/yii2-comments/migrations',
'@vendor/yii2mod/yii2-settings/migrations',
'@yii/rbac/migrations',
],
],
'fixture' => [
'class' => 'yii\console\controllers\FixtureController',
'namespace' => 'app\tests\fixtures',
],
],
Thanks @igor-chepurnoi , i have one last question, after do the modification, i run composer update
but doesn't do all updates from repository. For example this updates doesn't reflect in my project
Hi, @tokiaquino
You can change your code manually. composer update
command only update packages in the require
and require-dev
sections in the composer.json
What steps will reproduce the problem?
In Configuration Step 3 Apply migrations when do
php yii migrate
What do you get?
Proposed solution
In config/console.php Add migrationPath to the
$config['controllerMap']['migrate']
like belowThats because BaseMigrateController->migrationPath default value is an array, and when we apply the migration String expected
Additional info