yii2mod / base

Yii2 application template
MIT License
53 stars 15 forks source link

cyberz/yii2-multipath-migrations is no longer needed in Yii2 2.0.12 #38

Closed sinfuljosh closed 7 years ago

sinfuljosh commented 7 years ago

http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#applying-migrations

migrationPath: string|array (defaults to @app/migrations), specifies the directory storing all migration class files. This can be specified as either a directory path or a path alias. Note that the directory must exist, or the command may trigger an error. Since version 2.0.12 an array can be specified for loading migrations from multiple sources.

I had to remove the class from console-local.php and set it to yiisoft's.

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationPath' => [
            '@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',
        ],
    ],
sinfuljosh commented 7 years ago

Actually I see that you already addressed that in a closed issue. The strange thing is that I used composer to install your package and comparing the composer.json file with the one from here on github. I have a different version.

Im assuming that composer is not pulling the updated info or something. but this issue is resolved in current build. (downloaded direct from github worked with no issues.