yiisoft / yii2-app-basic

Yii 2.0 Basic Application Template
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
657 stars 789 forks source link

Please, add the namespaces for standard migrations #116

Closed taita-wizard closed 7 years ago

taita-wizard commented 7 years ago

yii\rbac\migrations yii\web\migrations

yii-bot commented 7 years ago

Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

taita-wizard commented 7 years ago

Since 2.0.10 yii2 has namespaced migrations.

http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#modifying-migration-history

So, if I want use this

return [
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                'app\migrations', 

            ],
        ],
    ],

I can't do that with standard yii2 migrations, and should install them separately

php yii migrate --migrationPath=@yii/rbac/migrations php yii migrate --migrationPath=@yii/web/migrations

All you need to add nsamespace to this migrations.

SilverFire commented 7 years ago

Issue is related to yiisoft/yii2 repository. There is a good one already: https://github.com/yiisoft/yii2/issues/13918

Thank you