Antonio Ramirez b0cf145c6b php cs fixer
2016-12-15 23:01:45 +01:00
2016-12-14 02:50:12 +01:00
2016-12-15 23:01:45 +01:00
2016-12-11 21:34:22 +01:00
2016-12-11 04:17:55 +01:00
2016-12-11 04:17:55 +01:00
2016-12-13 13:50:01 +06:00

Migrations

Add the following settings to your console application configuration file:

return [
    // ...
    'controllerMap' => [
        'migrate' => [
            'class' => \yii\console\controllers\MigrateController::class,
            'migrationNamespaces' => [
                'Da\User\Migration',
            ],
        ],
    ],
    // ...
];

This will allow you to run only a single console command:

./yii migrate

It prevents you from manual tracking of new migrations coming from our extension. What if we would add a new migration class, and you forgot to run appropriate console command to launch them?

Without namespaced migrations it would be:

./yii migrate
./yii migrate --migrationPath="@Da/User/resources/migrations"

Without namespaced migrations it's just:

./yii migrate
Description
No description provided
Readme 2.4 MiB
Languages
PHP 100%