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