Conditions | 5 |
Paths | 9 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function change() { |
||
10 | |||
11 | if ($this->hasTable('river')) { |
||
12 | $table = $this->table('river'); |
||
13 | |||
14 | if ($table->hasColumn('type')) { |
||
15 | $table->removeColumn('type'); |
||
16 | } |
||
17 | |||
18 | if ($table->hasColumn('subtype')) { |
||
19 | $table->removeColumn('subtype'); |
||
20 | } |
||
21 | |||
22 | if ($table->hasColumn('access_id')) { |
||
23 | $table->removeColumn('access_id'); |
||
24 | } |
||
25 | |||
26 | $table->save(); |
||
27 | } |
||
30 |