Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function change() |
||
11 | { |
||
12 | $mapsTable = $this->table('maps'); |
||
13 | $mapsTable |
||
14 | ->addColumn('world_size', 'integer', [ |
||
15 | 'after' => 'description', |
||
16 | 'signed' => false, |
||
17 | 'limit' => 5, |
||
18 | 'null' => true, |
||
19 | 'comment' => 'The world size of the map', |
||
20 | ]) |
||
21 | ->addColumn('randomly_generated', 'boolean', [ |
||
22 | 'after' => 'world_size', |
||
23 | 'null' => false, |
||
24 | 'default' => false, |
||
25 | 'comment' => 'Whether or not the map is randomly generated each map', |
||
26 | ]) |
||
27 | ->addColumn('game_mode', 'integer', [ |
||
28 | 'after' => 'jumping', |
||
29 | 'signed' => false, |
||
30 | 'limit' => 2, |
||
31 | 'null' => false, |
||
32 | 'default' => 1, |
||
33 | 'comment' => 'The game mode this map follows', // see GAME_MODE_* consts in Map model |
||
34 | ]) |
||
35 | ->update() |
||
36 | ; |
||
37 | } |
||
38 | } |
||
39 |