diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 55f9605adf..80a0547e49 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -7,6 +7,7 @@ Yii Framework 2 Change Log - Bug #20232: Fix regression introduced in `GHSA-cjcc-p67m-7qxm` while attaching behavior defined by `__class` array key (erickskrauch) - Bug #20231: Fix regression introduced in #20167 in `yii\validators\FileValidator` (bizley) - Enh #20247: Support for variadic console controller action methods (brandonkelly) +- Bug #20256: Add support for dropping views in MSSQL server when running migrate/fresh (ambrozt) 2.0.51 July 18, 2024 -------------------- diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index 315440f3bb..104c686574 100644 --- a/framework/console/controllers/MigrateController.php +++ b/framework/console/controllers/MigrateController.php @@ -333,6 +333,7 @@ class MigrateController extends BaseMigrateController $dropViewErrors = [ 'DROP VIEW to delete view', // SQLite 'SQLSTATE[42S02]', // MySQL + 'is a view. Use DROP VIEW', // Microsoft SQL Server ]; foreach ($dropViewErrors as $dropViewError) {