@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * yii migrate/down all # revert all migrations |
209 | 209 | * ``` |
210 | 210 | * |
211 | - * @param int|string $limit the number of migrations to be reverted. Defaults to 1, |
|
211 | + * @param integer $limit the number of migrations to be reverted. Defaults to 1, |
|
212 | 212 | * meaning the last applied migration will be reverted. When value is "all", all migrations will be reverted. |
213 | 213 | * @throws Exception if the number of the steps specified is less than 1. |
214 | 214 | * |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * yii migrate/redo all # redo all migrations |
271 | 271 | * ``` |
272 | 272 | * |
273 | - * @param int|string $limit the number of migrations to be redone. Defaults to 1, |
|
273 | + * @param integer $limit the number of migrations to be redone. Defaults to 1, |
|
274 | 274 | * meaning the last applied migration will be redone. When equals "all", all migrations will be redone. |
275 | 275 | * @throws Exception if the number of the steps specified is less than 1. |
276 | 276 | * |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | * yii migrate/history all # showing the whole history |
472 | 472 | * ``` |
473 | 473 | * |
474 | - * @param int|string $limit the maximum number of migrations to be displayed. |
|
474 | + * @param integer $limit the maximum number of migrations to be displayed. |
|
475 | 475 | * If it is "all", the whole migration history will be displayed. |
476 | 476 | * @throws \yii\console\Exception if invalid limit value passed |
477 | 477 | */ |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | * yii migrate/new all # showing all new migrations |
516 | 516 | * ``` |
517 | 517 | * |
518 | - * @param int|string $limit the maximum number of new migrations to be displayed. |
|
518 | + * @param integer $limit the maximum number of new migrations to be displayed. |
|
519 | 519 | * If it is `all`, all available new migrations will be displayed. |
520 | 520 | * @throws \yii\console\Exception if invalid limit value passed |
521 | 521 | */ |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | abstract protected function removeMigrationHistory($version); |
912 | 912 | |
913 | 913 | /** |
914 | - * @param ReversibleMigrationInterface|Migration $migration |
|
914 | + * @param ReversibleMigrationInterface $migration |
|
915 | 915 | */ |
916 | 916 | protected function applyChangesFrom(ReversibleMigrationInterface $migration) |
917 | 917 | { |
@@ -920,7 +920,7 @@ discard block |
||
920 | 920 | } |
921 | 921 | |
922 | 922 | /** |
923 | - * @param ReversibleMigrationInterface|Migration $migration |
|
923 | + * @param ReversibleMigrationInterface $migration |
|
924 | 924 | */ |
925 | 925 | protected function revertChangesFrom(ReversibleMigrationInterface $migration) |
926 | 926 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use yii\console\Controller; |
13 | 13 | use yii\console\Exception; |
14 | 14 | use yii\console\ExitCode; |
15 | -use yii\db\fake\FakeConnection; |
|
16 | 15 | use yii\db\Migration; |
17 | 16 | use yii\db\MigrationReverser; |
18 | 17 | use yii\db\ReversibleMigrationInterface; |
@@ -12,6 +12,9 @@ |
||
12 | 12 | { |
13 | 13 | const EXECUTED_COMMAND_LOG = 'executed_command'; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $name |
|
17 | + */ |
|
15 | 18 | protected function recordCommand($name, $params) |
16 | 19 | { |
17 | 20 | $this->db->getLogger()->log([$name, $params], self::EXECUTED_COMMAND_LOG); |