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