mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 10:31:30 -06:00
Set the collation when replacing a column in a schema.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user