Fix #18886: Fix default return of yii\db\Migration::safeUp() and yii\db\Migration::safeDown()

This commit is contained in:
Anton
2021-09-19 12:38:06 +03:00
committed by GitHub
parent 4e5c95f8f1
commit fdbdbb51fb
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

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