1 | <?php |
||
17 | class Migrate extends CommandAbstract |
||
18 | { |
||
19 | /** |
||
20 | * array of the command |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | |||
25 | protected $_commandArray = |
||
26 | [ |
||
27 | 'migrate' => |
||
28 | [ |
||
29 | 'description' => 'Migrate command', |
||
30 | 'argumentArray' => |
||
31 | [ |
||
32 | 'database' => |
||
33 | [ |
||
34 | 'description' => 'Migrate the database', |
||
35 | ] |
||
36 | ] |
||
37 | ] |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * run the command |
||
42 | * |
||
43 | * @since 4.4.0 |
||
44 | * |
||
45 | * @param string $mode name of the mode |
||
46 | * |
||
47 | * @return string|null |
||
48 | */ |
||
49 | |||
50 | public function run(string $mode = null) : ?string |
||
65 | |||
66 | /** |
||
67 | * migrate the database |
||
68 | * |
||
69 | * @since 4.4.0 |
||
70 | * |
||
71 | * @return bool |
||
72 | */ |
||
73 | |||
74 | protected function _database() : bool |
||
80 | } |
||
81 |