mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 02:28:35 +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 #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 | ||||
| -------------------- | ||||
|  | ||||
| @ -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) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Stefano D. Mtangoo
					Stefano D. Mtangoo