Commit 573db3b270e431e938bbcb1dce48fb6c53185b7a
1 parent
4db2ba78
big commti
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
console/migrations/m160920_193159_add_sale_percent_to_event.php
@@ -6,14 +6,14 @@ class m160920_193159_add_sale_percent_to_event extends Migration | @@ -6,14 +6,14 @@ class m160920_193159_add_sale_percent_to_event extends Migration | ||
6 | { | 6 | { |
7 | public function up() | 7 | public function up() |
8 | { | 8 | { |
9 | - | 9 | + $this->addColumn('event', 'sale', $this->boolean()); |
10 | + $this->addColumn('event', 'percent', $this->integer(5)); | ||
10 | } | 11 | } |
11 | 12 | ||
12 | public function down() | 13 | public function down() |
13 | { | 14 | { |
14 | - echo "m160920_193159_add_sale_percent_to_event cannot be reverted.\n"; | ||
15 | - | ||
16 | - return true; | 15 | + $this->dropColumn('event', 'sale'); |
16 | + $this->dropColumn('event', 'percent'); | ||
17 | } | 17 | } |
18 | 18 | ||
19 | /* | 19 | /* |