| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function changeSchema(Schema $schema, array $options) { |
||
| 33 | $prefix = $options['tablePrefix']; |
||
| 34 | |||
| 35 | if ($schema->hasTable("${prefix}files_antivirus")) { |
||
| 36 | $table = $schema->getTable("{$prefix}files_antivirus"); |
||
| 37 | |||
| 38 | $fileIdColumn = $table->getColumn('fileid'); |
||
| 39 | if ($fileIdColumn |
||
| 40 | && $fileIdColumn->getType()->getName() !== Type::BIGINT |
||
| 41 | ) { |
||
| 42 | $fileIdColumn->setType(Type::getType(Type::BIGINT)); |
||
| 43 | $fileIdColumn->setOptions(['length' => 20]); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 |