From fdbdbb51fbea85a14ce27010fb43bc7a413d33fa Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 19 Sep 2021 12:38:06 +0300 Subject: [PATCH] Fix #18886: Fix default return of `yii\db\Migration::safeUp()` and `yii\db\Migration::safeDown()` --- framework/CHANGELOG.md | 1 + framework/db/Migration.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index a84adac269..631e611100 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -18,6 +18,7 @@ Yii Framework 2 Change Log - Enh #18858: Reduce memory usage in `yii\base\View::afterRender` method (LeoOnTheEarth) - Bug #18880: Fix `yii\helpers\ArrayHelper::toArray()` for `DateTime` objects in PHP >= 7.4 (rhertogh) - Bug #18883: Fix `yii\web\HeaderCollection::fromArray()` now ensures lower case keys (rhertogh) +- Bug #18886: Fix default return of `yii\db\Migration::safeUp()` and `yii\db\Migration::safeDown()` (WinterSilence) 2.0.43 August 09, 2021 diff --git a/framework/db/Migration.php b/framework/db/Migration.php index a144d4a43f..e1177d4667 100644 --- a/framework/db/Migration.php +++ b/framework/db/Migration.php @@ -182,6 +182,7 @@ class Migration extends Component implements MigrationInterface */ public function safeUp() { + return true; } /** @@ -199,6 +200,7 @@ class Migration extends Component implements MigrationInterface */ public function safeDown() { + return true; } /**