| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 44 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 45 | { |
||
| 46 | if ($input->getOption('force')) { |
||
| 47 | $this->getManager($input->getOption('manager'))->getConnection()->dropIndex(); |
||
| 48 | |||
| 49 | $output->writeln( |
||
| 50 | sprintf( |
||
| 51 | '<info>Dropped index for manager named</info> <comment>`%s`</comment>', |
||
| 52 | $input->getOption('manager') |
||
| 53 | ) |
||
| 54 | ); |
||
| 55 | } else { |
||
| 56 | $output->writeln( |
||
| 57 | '<error>ATTENTION:</error> This action should not be used in production environment.' |
||
| 58 | . "\n\nOption --force has to be used to drop type(s)." |
||
| 59 | ); |
||
| 60 | |||
| 61 | return 1; |
||
| 62 | } |
||
| 63 | |||
| 64 | return 0; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |