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; } /**