From d4fe447d7fbcdae1c8d7ce7dd891ee6e1809e6ef Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 9 Nov 2015 11:11:56 +0200 Subject: [PATCH] upload project --- console/migrations/m151109_085627_update_news_img.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/console/migrations/m151109_085627_update_news_img.php b/console/migrations/m151109_085627_update_news_img.php index 142a079..2c7def2 100644 --- a/console/migrations/m151109_085627_update_news_img.php +++ b/console/migrations/m151109_085627_update_news_img.php @@ -5,12 +5,12 @@ use yii\db\Migration; class m151109_085627_update_news_img extends Migration { - public function saveUp() + public function safeUp() { $view = <<< MySQL update - italautocomua.w_news - set img = CONCAT('/storage/news/',img) + w_news + set img = CONCAT('/storage/news/',img); MySQL; $this->execute($view); @@ -20,7 +20,7 @@ MySQL; { echo "m151109_085627_update_news_img cannot be reverted.\n"; - return false; + return true; } /* -- libgit2 0.21.4