...otherwise we might delete indexes before the related constraint in case they are different refs #13591
fixes #13591