@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use clearice\io\Io; |
6 | 6 | use yentu\CodeWriter; |
7 | +use yentu\Migrations; |
|
7 | 8 | use yentu\exceptions\CommandException; |
8 | 9 | use yentu\factories\DatabaseManipulatorFactory; |
9 | -use yentu\Migrations; |
|
10 | 10 | |
11 | 11 | class Import extends Command implements Reversible |
12 | 12 | { |
@@ -27,11 +27,11 @@ |
||
27 | 27 | namespace yentu\commands; |
28 | 28 | |
29 | 29 | use clearice\io\Io; |
30 | -use yentu\factories\DatabaseManipulatorFactory; |
|
31 | 30 | use yentu\Migrations; |
32 | 31 | use yentu\Parameters; |
33 | 32 | use yentu\commands\Reversible; |
34 | 33 | use yentu\exceptions\CommandException; |
34 | +use yentu\factories\DatabaseManipulatorFactory; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * The init command class. This command intiates a project for yentu migration |
@@ -27,12 +27,12 @@ |
||
27 | 27 | namespace yentu\commands; |
28 | 28 | |
29 | 29 | use clearice\io\Io; |
30 | +use yentu\ChangeLogger; |
|
31 | +use yentu\Migrations; |
|
30 | 32 | use yentu\database\Begin; |
31 | 33 | use yentu\database\DatabaseItem; |
32 | -use yentu\ChangeLogger; |
|
33 | 34 | use yentu\database\ForeignKey; |
34 | 35 | use yentu\factories\DatabaseManipulatorFactory; |
35 | -use yentu\Migrations; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * The migrate command for the yentu database migration system. This class is |
@@ -28,5 +28,8 @@ |
||
28 | 28 | |
29 | 29 | interface Reversible |
30 | 30 | { |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
31 | 34 | public function reverseActions(); |
32 | 35 | } |
33 | 36 | \ No newline at end of file |
@@ -22,7 +22,6 @@ discard block |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
25 | - * @param array $this->options |
|
26 | 25 | * @throws \yentu\exceptions\DatabaseManipulatorException |
27 | 26 | */ |
28 | 27 | public function run() |
@@ -62,6 +61,9 @@ discard block |
||
62 | 61 | } |
63 | 62 | } |
64 | 63 | |
64 | + /** |
|
65 | + * @param \yentu\manipulators\AbstractDatabaseManipulator $db |
|
66 | + */ |
|
65 | 67 | private function getOperations($db, $set) |
66 | 68 | { |
67 | 69 | $operations = []; |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace yentu\commands; |
4 | 4 | |
5 | +use clearice\io\Io; |
|
5 | 6 | use yentu\ChangeReverser; |
6 | 7 | use yentu\database\DatabaseItem; |
7 | 8 | use yentu\factories\DatabaseManipulatorFactory; |
8 | -use clearice\io\Io; |
|
9 | 9 | |
10 | 10 | class Rollback extends Command |
11 | 11 | { |