Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -3427,6 +3427,13 @@ static TOperation CopyColumnOperation<TOperation>(ColumnOperation source)

foreach (var annotation in source.GetAnnotations())
{
// For history tables in temporal tables, exclude DEFAULT constraint annotations
// because history tables should not have DEFAULT constraints
if (annotation.Name == RelationalAnnotationNames.DefaultConstraintName)
Comment thread
AndriySvyryd marked this conversation as resolved.
Outdated
{
continue;
}

result.AddAnnotation(annotation.Name, annotation.Value);
}

Expand Down
Loading