Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class RollupCommand extends DoctrineCommand |
||
16 | { |
||
17 | /** @var string */ |
||
18 | protected static $defaultName = 'migrations:rollup'; |
||
19 | |||
20 | protected function configure() : void |
||
21 | { |
||
22 | parent::configure(); |
||
23 | |||
24 | $this |
||
25 | ->setAliases(['rollup']) |
||
26 | ->setDescription('Rollup migrations by deleting all tracked versions and insert the one version that exists.') |
||
27 | ->setHelp(<<<EOT |
||
28 | The <info>%command.name%</info> command rolls up migrations by deleting all tracked versions and |
||
29 | inserts the one version that exists that was created with the <info>migrations:dump-schema</info> command. |
||
30 | |||
31 | <info>%command.full_name%</info> |
||
32 | |||
33 | To dump your schema to a migration version you can use the <info>migrations:dump-schema</info> command. |
||
34 | EOT |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | protected function execute(InputInterface $input, OutputInterface $output) : ?int |
||
57 | } |
||
58 | } |
||
59 |