File tree Expand file tree Collapse file tree
SQLSchemaCompare.Infrastructure/SqlScripters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "type" : " coreclr" ,
77 "request" : " launch" ,
88 "preLaunchTask" : " Build UI" ,
9- "program" : " ${workspaceFolder}/SQLSchemaCompare.UI/bin/Debug/net8.0/TiCodeX.SQLSchemaCompare.UI.dll" ,
9+ "program" : " ${workspaceFolder}/SQLSchemaCompare.UI/bin/Debug/net8.0/win-x64/ TiCodeX.SQLSchemaCompare.UI.dll" ,
1010 "cwd" : " ${workspaceFolder}/SQLSchemaCompare.UI" ,
1111 "presentation" : {
1212 "hidden" : true ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ protected override string ScriptAlterTable(ABaseDbTable t)
108108 throw new ArgumentException ( "Wrong column type" ) ;
109109 }
110110
111- if ( col . DataType != mappedCol . DataType )
111+ if ( col . DataType != mappedCol . DataType || col . CharacterMaxLenght != mappedCol . CharacterMaxLenght )
112112 {
113113 sb . Append ( $ "ALTER TABLE { this . ScriptHelper . ScriptObjectName ( t ) } ALTER COLUMN ") ;
114114 sb . AppendLine ( $ "{ this . ScriptHelper . ScriptObjectName ( col . Name ) } TYPE { this . ScriptHelper . ScriptDataType ( col ) } ;") ;
You can’t perform that action at this time.
0 commit comments