| 1 | <?php |
||
| 5 | class CreateRoundTimes extends AbstractMigration |
||
| 6 | { |
||
| 7 | public function change() |
||
| 8 | { |
||
| 9 | $round_times = $this->table('round_times', ['id' => 'round_time_id']); |
||
| 10 | |||
| 11 | $round_times->addColumn('draft_id', 'integer', ['limit' => 11]) |
||
| 12 | ->addColumn('is_static_time', 'boolean', ['limit' => 1, 'null' => true, 'default' => null]) |
||
| 13 | ->addColumn('draft_round', 'integer', ['limit' => 2, 'null' => true, 'default' => null]) |
||
| 14 | ->addColumn('round_time_seconds', 'integer', ['limit' => 11, 'null' => true, 'default' => null]) |
||
| 15 | ->addIndex('draft_id', ['name' => 'draft_idx']) |
||
| 16 | ->addIndex('draft_round', ['name' => 'round_idx']) |
||
| 17 | ->create(); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |