Skip to content

Commit

Permalink
delete owner requests upon package hard delete (#4898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Bommarito committed Oct 25, 2017
1 parent a5115a8 commit 7e72e47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NuGetGallery/Services/PackageDeleteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ SELECT TOP 1 [Key]
FROM Packages AS p
WHERE p.[PackageRegistrationKey] = @key)
BEGIN
DELETE por FROM PackageOwnerRequests As por
WHERE por.[PackageRegistrationKey] = @key
DELETE pro FROM PackageRegistrationOwners AS pro
WHERE pro.[PackageRegistrationKey] = @key
Expand Down

0 comments on commit 7e72e47

Please sign in to comment.