Set the collation when replacing a column in a schema.

This commit is contained in:
Nick Tobey
2025-02-20 11:21:23 -08:00
parent 997bfefa91
commit d3aaf30140

View File

@@ -287,6 +287,9 @@ func replaceColumnInSchema(sch schema.Schema, oldCol schema.Column, newCol schem
}
}
// Copy over the collation
newSch.SetCollation(sch.GetCollation())
pkOrds, err := modifyPkOrdinals(sch, newSch)
if err != nil {
return nil, err