diff --git a/pkg/sql/catalog/tabledesc/structured.go b/pkg/sql/catalog/tabledesc/structured.go index 026b7a16e232..08b6cfddfd5f 100644 --- a/pkg/sql/catalog/tabledesc/structured.go +++ b/pkg/sql/catalog/tabledesc/structured.go @@ -1572,6 +1572,7 @@ func (desc *Mutable) MakeMutationComplete(m descpb.DescriptorMutation) error { for i, c := range desc.Checks { if c.Name == t.Constraint.Check.Name { desc.Checks = append(desc.Checks[:i], desc.Checks[i+1:]...) + break } } col, err := desc.FindColumnWithID(t.Constraint.NotNullColumn)