From d6c83dec98d2a959fb4c2520ccd85fec1e8f7923 Mon Sep 17 00:00:00 2001 From: Gianmarco Manni Date: Mon, 2 Mar 2026 16:42:24 +0100 Subject: [PATCH] x --- .vscode/launch.json | 2 +- .../SqlScripters/PostgreSqlScripter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 558f7e15..bd3daff7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "Build UI", - "program": "${workspaceFolder}/SQLSchemaCompare.UI/bin/Debug/net8.0/TiCodeX.SQLSchemaCompare.UI.dll", + "program": "${workspaceFolder}/SQLSchemaCompare.UI/bin/Debug/net8.0/win-x64/TiCodeX.SQLSchemaCompare.UI.dll", "cwd": "${workspaceFolder}/SQLSchemaCompare.UI", "presentation": { "hidden": true, diff --git a/SQLSchemaCompare.Infrastructure/SqlScripters/PostgreSqlScripter.cs b/SQLSchemaCompare.Infrastructure/SqlScripters/PostgreSqlScripter.cs index 1edd865b..c5faaaa7 100644 --- a/SQLSchemaCompare.Infrastructure/SqlScripters/PostgreSqlScripter.cs +++ b/SQLSchemaCompare.Infrastructure/SqlScripters/PostgreSqlScripter.cs @@ -108,7 +108,7 @@ protected override string ScriptAlterTable(ABaseDbTable t) throw new ArgumentException("Wrong column type"); } - if (col.DataType != mappedCol.DataType) + if (col.DataType != mappedCol.DataType || col.CharacterMaxLenght != mappedCol.CharacterMaxLenght) { sb.Append($"ALTER TABLE {this.ScriptHelper.ScriptObjectName(t)} ALTER COLUMN "); sb.AppendLine($"{this.ScriptHelper.ScriptObjectName(col.Name)} TYPE {this.ScriptHelper.ScriptDataType(col)};");