Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function down() |
||
47 | { |
||
48 | if ($this->getSchema()->hasColumn('contents', 'important')) { |
||
49 | $this->getSchema()->table('contents', function ($table) { |
||
50 | $table->dropColumn('important'); |
||
51 | }); |
||
52 | } |
||
53 | if ($this->getSchema()->hasColumn('roles', 'color')) { |
||
54 | $this->getSchema()->table('roles', function ($table) { |
||
55 | $table->dropColumn('color'); |
||
56 | }); |
||
57 | } |
||
58 | parent::down(); |
||
59 | } |
||
60 | } |