1 | <?php |
||
14 | class Migrate extends YarakCommand |
||
15 | { |
||
16 | /** |
||
17 | * Configure the command. |
||
18 | */ |
||
19 | protected function configure() |
||
31 | |||
32 | /** |
||
33 | * Add rollback option. |
||
34 | */ |
||
35 | protected function addRollback() |
||
44 | |||
45 | /** |
||
46 | * Add steps option. |
||
47 | */ |
||
48 | protected function addSteps() |
||
58 | |||
59 | /** |
||
60 | * Add reset option. |
||
61 | */ |
||
62 | protected function addReset() |
||
71 | |||
72 | /** |
||
73 | * Add refresh option. |
||
74 | */ |
||
75 | protected function addRefresh() |
||
84 | |||
85 | /** |
||
86 | * Add seed option. |
||
87 | */ |
||
88 | protected function addSeed() |
||
97 | |||
98 | /** |
||
99 | * Add seed class option. |
||
100 | */ |
||
101 | protected function addSeedClass() |
||
111 | |||
112 | /** |
||
113 | * Execute the command. |
||
114 | * |
||
115 | * @param InputInterface $input |
||
116 | * @param OutputInterface $output |
||
117 | */ |
||
118 | protected function execute(InputInterface $input, OutputInterface $output) |
||
134 | |||
135 | /** |
||
136 | * Get an instance of the migrator. |
||
137 | * |
||
138 | * @param SymfonyOutput $symfonyOutput |
||
139 | * |
||
140 | * @return Migrator |
||
141 | */ |
||
142 | protected function getMigrator(SymfonyOutput $symfonyOutput) |
||
155 | |||
156 | /** |
||
157 | * Get the name of the migrator class. |
||
158 | * |
||
159 | * @param Config $config |
||
160 | * |
||
161 | * @return string |
||
162 | */ |
||
163 | protected function getMigratorClassName(Config $config) |
||
170 | |||
171 | /** |
||
172 | * Get an instance of MigrationRepository. |
||
173 | * |
||
174 | * @param Config $config |
||
175 | * |
||
176 | * @return Yarak\Migrations\MigrationRepository |
||
177 | */ |
||
178 | protected function getRepository(Config $config) |
||
187 | |||
188 | /** |
||
189 | * Perform the database refresh. |
||
190 | * |
||
191 | * @param Migrator $migrator |
||
192 | * @param InputInterface $input |
||
193 | * @param Output $symfonyOutput |
||
194 | */ |
||
195 | protected function preformRefresh( |
||
208 | } |
||
209 |