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