Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class RollupCommand extends AbstractCommand |
||
12 | { |
||
13 | 10 | protected function configure() : void |
|
14 | { |
||
15 | 10 | parent::configure(); |
|
16 | |||
17 | $this |
||
18 | 10 | ->setName('migrations:rollup') |
|
19 | 10 | ->setAliases(['rollup']) |
|
20 | 10 | ->setDescription('Rollup migrations by deleting all tracked versions and insert the one version that exists.') |
|
21 | 10 | ->setHelp(<<<EOT |
|
22 | 10 | The <info>%command.name%</info> command rolls up migrations by deleting all tracked versions and |
|
23 | inserts the one version that exists that was created with the <info>migrations:dump-schema</info> command. |
||
24 | |||
25 | <info>%command.full_name%</info> |
||
26 | |||
27 | To dump your schema to a migration version you can use the <info>migrations:dump-schema</info> command. |
||
28 | EOT |
||
29 | ) |
||
30 | ; |
||
31 | 10 | } |
|
32 | |||
33 | 2 | public function execute( |
|
43 | )); |
||
44 | 2 | } |
|
46 |