Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | 2 | public function run(IOutput $output) { |
|
46 | 2 | $output->startProgress(1); |
|
47 | 2 | if ($this->connection->tableExists('ocr_jobs')) { |
|
48 | 1 | $this->connection->dropTable('ocr_jobs'); |
|
49 | } |
||
50 | // still needed for downwards compatibility |
||
51 | 2 | if ($this->connection->tableExists('ocr_status')) { |
|
52 | 1 | $this->connection->dropTable('ocr_status'); |
|
53 | } |
||
54 | 2 | $output->advance(1, "Drop old database table: ocr_jobs"); |
|
55 | 2 | $output->finishProgress(); |
|
56 | 2 | } |
|
57 | |||
58 | } |