| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function changeSchema(Schema $schema, array $options) { |
||
| 12 | $prefix = $options['tablePrefix']; |
||
| 13 | |||
| 14 | if ($schema->hasTable("${prefix}files_antivirus")) { |
||
| 15 | $table = $schema->getTable("{$prefix}files_antivirus"); |
||
| 16 | |||
| 17 | $fileIdColumn = $table->getColumn('fileid'); |
||
| 18 | if ($fileIdColumn && $fileIdColumn->getType()->getName() !== Type::BIGINT) { |
||
| 19 | $fileIdColumn->setType(Type::getType(Type::BIGINT)); |
||
| 20 | $fileIdColumn->setOptions(['length' => 20]); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 |