mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-06 14:19:23 +08:00
fixed migration example in guide
do not register the `app\migrations` path twice when using namespaces. fixes #14536
This commit is contained in:
@ -909,6 +909,7 @@ return [
|
||||
'controllerMap' => [
|
||||
'migrate' => [
|
||||
'class' => 'yii\console\controllers\MigrateController',
|
||||
'migrationPath' => null, // disable non-namespaced migrations if app\migrations is listed below
|
||||
'migrationNamespaces' => [
|
||||
'app\migrations', // Common migrations for the whole application
|
||||
'module\migrations', // Migrations for the specific project's module
|
||||
|
Reference in New Issue
Block a user