| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function up(Schema $schema) : void |
||
| 16 | { |
||
| 17 | $table = $schema->getTable('history'); |
||
| 18 | $table->addColumn('type', 'string', ['length' => 255]); |
||
| 19 | |||
| 20 | $table = $schema->getTable('performances'); |
||
| 21 | $table->addColumn('festival_id', 'integer', ['default' => NULL, 'notnull' => false]); |
||
| 22 | $table->addForeignKeyConstraint('history', ['festival_id'], ['id']); |
||
| 23 | } |
||
| 24 | |||
| 29 |