Skip to content

Commit

Permalink
#1545: Postgres10_0 / Postgress11_0: When altering column, migrator i…
Browse files Browse the repository at this point in the history
…gnores collation
  • Loading branch information
jzabroski committed Nov 25, 2023
1 parent fcc2c00 commit e6cbe62
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ private string FormatAlterNullable(ColumnDefinition column)
private string FormatAlterType(ColumnDefinition column)
{
var collation = FormatCollation(column);
return $"TYPE {GetColumnType(column)} {collation}";
return $"TYPE {GetColumnType(column)}{(string.IsNullOrWhiteSpace(collation) ? string.Empty : " " + collation)}";
}

protected IList<Func<ColumnDefinition, string>> AlterClauseOrder { get; set; }
Expand Down

0 comments on commit e6cbe62

Please sign in to comment.