Skip to content

Commit aa62807

Browse files
authored
HOTFIX: Only drop the CVSSRating if it exists (#7180)
1 parent 8fff556 commit aa62807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGetGallery/Migrations/201904292139301_RemoveVulnerabilityDataFromPackageDeprecationModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public override void Up()
1717
DropIndex("dbo.PackageDeprecationCves", new[] { "Cve_Key" });
1818
DropIndex("dbo.PackageDeprecationCwes", new[] { "PackageDeprecation_Key" });
1919
DropIndex("dbo.PackageDeprecationCwes", new[] { "Cwe_Key" });
20-
Sql("ALTER TABLE [dbo].[PackageDeprecations] DROP CONSTRAINT [dbo.PackageDeprecations_CVSSRating];");
20+
Sql("ALTER TABLE [dbo].[PackageDeprecations] DROP CONSTRAINT IF EXISTS [dbo.PackageDeprecations_CVSSRating];");
2121
DropColumn("dbo.PackageDeprecations", "CvssRating");
2222
DropTable("dbo.Cves");
2323
DropTable("dbo.Cwes");

0 commit comments

Comments
 (0)