From 573db3b270e431e938bbcb1dce48fb6c53185b7a Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 20 Sep 2016 22:49:15 +0300 Subject: [PATCH] big commti --- console/migrations/m160920_193159_add_sale_percent_to_event.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/console/migrations/m160920_193159_add_sale_percent_to_event.php b/console/migrations/m160920_193159_add_sale_percent_to_event.php index 853a5d8..0ec3a68 100644 --- a/console/migrations/m160920_193159_add_sale_percent_to_event.php +++ b/console/migrations/m160920_193159_add_sale_percent_to_event.php @@ -6,14 +6,14 @@ class m160920_193159_add_sale_percent_to_event extends Migration { public function up() { - + $this->addColumn('event', 'sale', $this->boolean()); + $this->addColumn('event', 'percent', $this->integer(5)); } public function down() { - echo "m160920_193159_add_sale_percent_to_event cannot be reverted.\n"; - - return true; + $this->dropColumn('event', 'sale'); + $this->dropColumn('event', 'percent'); } /* -- libgit2 0.21.4