This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error code for ScanOperationStates table (#421)
- Loading branch information
1 parent
dcad893
commit 3ea64a7
Showing
5 changed files
with
204 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...t.Services.Validation/Migrations/202403221929285_AddErrorCodeOperationDetails.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
src/NuGet.Services.Validation/Migrations/202403221929285_AddErrorCodeOperationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace NuGet.Services.Validation | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class AddErrorCodeOperationDetails : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
DropIndex("scan.ScanOperationStates", "IX_ScanOperationStates_PackageValidationKey_AttemptIndex"); | ||
AddColumn("scan.ScanOperationStates", "ErrorCode", c => c.String()); | ||
AddColumn("scan.ScanOperationStates", "OperationDetails", c => c.String()); | ||
CreateIndex("scan.ScanOperationStates", new[] { "PackageValidationKey", "OperationType", "AttemptIndex" }, unique: true, name: "IX_ScanOperationStates_PackageValidationKey_OperationType_AttemptIndex"); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
DropIndex("scan.ScanOperationStates", "IX_ScanOperationStates_PackageValidationKey_OperationType_AttemptIndex"); | ||
DropColumn("scan.ScanOperationStates", "OperationDetails"); | ||
DropColumn("scan.ScanOperationStates", "ErrorCode"); | ||
CreateIndex("scan.ScanOperationStates", new[] { "PackageValidationKey", "AttemptIndex" }, unique: true, name: "IX_ScanOperationStates_PackageValidationKey_AttemptIndex"); | ||
} | ||
} | ||
} |
Oops, something went wrong.