mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +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' => [
|
'controllerMap' => [
|
||||||
'migrate' => [
|
'migrate' => [
|
||||||
'class' => 'yii\console\controllers\MigrateController',
|
'class' => 'yii\console\controllers\MigrateController',
|
||||||
|
'migrationPath' => null, // disable non-namespaced migrations if app\migrations is listed below
|
||||||
'migrationNamespaces' => [
|
'migrationNamespaces' => [
|
||||||
'app\migrations', // Common migrations for the whole application
|
'app\migrations', // Common migrations for the whole application
|
||||||
'module\migrations', // Migrations for the specific project's module
|
'module\migrations', // Migrations for the specific project's module
|
||||||
|
Reference in New Issue
Block a user