Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function up() |
||
18 | { |
||
19 | $bansTable = $this->table('bans'); |
||
20 | $bansTable |
||
21 | ->removeColumn('allow_server_join') |
||
22 | ->addColumn('is_soft_ban', 'boolean', [ |
||
23 | 'after' => 'author', |
||
24 | 'null' => false, |
||
25 | 'default' => false, |
||
26 | 'comment' => 'A soft ban will not penalize a user on the site or servers', |
||
27 | ]) |
||
28 | ->update() |
||
29 | ; |
||
30 | |||
31 | // Unban any currently banned players |
||
32 | $this->query("UPDATE players SET status = 'active' WHERE status = 'banned';"); |
||
33 | } |
||
34 | |||
50 |