1 | <?php |
||
11 | class Migrate extends YarakCommand |
||
12 | { |
||
13 | /** |
||
14 | * Configure the command. |
||
15 | */ |
||
16 | protected function configure() |
||
26 | |||
27 | /** |
||
28 | * Add rollback option. |
||
29 | */ |
||
30 | protected function addRollback() |
||
39 | |||
40 | /** |
||
41 | * Add steps option. |
||
42 | */ |
||
43 | protected function addSteps() |
||
53 | |||
54 | /** |
||
55 | * Add reset option. |
||
56 | */ |
||
57 | protected function addReset() |
||
66 | |||
67 | /** |
||
68 | * Add refresh option. |
||
69 | */ |
||
70 | protected function addRefresh() |
||
79 | |||
80 | /** |
||
81 | * Execute the command. |
||
82 | * |
||
83 | * @param InputInterface $input |
||
84 | * @param OutputInterface $output |
||
85 | */ |
||
86 | protected function execute(InputInterface $input, OutputInterface $output) |
||
104 | |||
105 | /** |
||
106 | * Get an instance of the migrator. |
||
107 | * |
||
108 | * @return Migrator |
||
109 | */ |
||
110 | protected function getMigrator() |
||
122 | |||
123 | /** |
||
124 | * Get the name of the migrator class. |
||
125 | * |
||
126 | * @param Config $config |
||
127 | * |
||
128 | * @return string |
||
129 | */ |
||
130 | protected function getMigratorClassName(Config $config) |
||
137 | |||
138 | /** |
||
139 | * Get an instance of MigrationRepository. |
||
140 | * |
||
141 | * @param Config $config |
||
142 | * |
||
143 | * @return Yarak\Migrations\MigrationRepository |
||
144 | */ |
||
145 | protected function getRepository(Config $config) |
||
154 | } |
||
155 |