| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { |
||
| 28 | /** @var Schema $schema */ |
||
| 29 | $schema = $schemaClosure(); |
||
| 30 | |||
| 31 | $table = $schema->getTable('activity'); |
||
| 32 | $table->dropIndex('activity_filter_app'); |
||
| 33 | $table->addIndex(['affecteduser', 'type', 'app', 'timestamp'], 'activity_filter'); |
||
| 34 | |||
| 35 | return $schema; |
||
| 36 | } |
||
| 37 | |||
| 47 |