mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 10:08:08 +08:00
Merge pull request #20257 from ambrozt/bugfix/20256-mssql-drop-views
Add support for dropping views in MSSQL server when running migrate/fresh
This commit is contained in:
@ -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 #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)
|
- Bug #20231: Fix regression introduced in #20167 in `yii\validators\FileValidator` (bizley)
|
||||||
- Enh #20247: Support for variadic console controller action methods (brandonkelly)
|
- 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
|
2.0.51 July 18, 2024
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@ -333,6 +333,7 @@ class MigrateController extends BaseMigrateController
|
|||||||
$dropViewErrors = [
|
$dropViewErrors = [
|
||||||
'DROP VIEW to delete view', // SQLite
|
'DROP VIEW to delete view', // SQLite
|
||||||
'SQLSTATE[42S02]', // MySQL
|
'SQLSTATE[42S02]', // MySQL
|
||||||
|
'is a view. Use DROP VIEW', // Microsoft SQL Server
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($dropViewErrors as $dropViewError) {
|
foreach ($dropViewErrors as $dropViewError) {
|
||||||
|
|||||||
Reference in New Issue
Block a user