Skip to content

Commit

Permalink
adding statupVersion to see it that run migrations in dev
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <[email protected]>
  • Loading branch information
neildsouth committed Jul 3, 2024
1 parent 9bc6929 commit 6943104
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ public M005_Payload_seriesUid() : base("1.0.5") { }

public override void Up(BsonDocument document)
{
document.Add("SeriesInstanceUid", BsonNull.Create(null).ToJson(), true);
try
{
document.Add("SeriesInstanceUid", BsonNull.Create(null).ToJson(), true);
}
catch

Check warning on line 32 in src/WorkflowManager/Contracts/Migrations/M005_Payload_seriesUid.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Handle the exception or explain in a comment why it can be ignored. (https://rules.sonarsource.com/csharp/RSPEC-2486)
{

Check warning on line 33 in src/WorkflowManager/Contracts/Migrations/M005_Payload_seriesUid.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Either remove or fill this block of code. (https://rules.sonarsource.com/csharp/RSPEC-108)
}
}

public override void Down(BsonDocument document)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ public M006_Payload_triggeredWorkflows() : base("1.0.6") { }

public override void Up(BsonDocument document)
{
document.Add("TriggeredWorkflowNames", BsonNull.Create(null).ToJson(), true);
try
{
document.Add("TriggeredWorkflowNames", BsonNull.Create(null).ToJson(), true);
}
catch

Check warning on line 32 in src/WorkflowManager/Contracts/Migrations/M006_Payload_triggeredWorkflows.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Handle the exception or explain in a comment why it can be ignored. (https://rules.sonarsource.com/csharp/RSPEC-2486)
{

Check warning on line 33 in src/WorkflowManager/Contracts/Migrations/M006_Payload_triggeredWorkflows.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Either remove or fill this block of code. (https://rules.sonarsource.com/csharp/RSPEC-108)
}
}

public override void Down(BsonDocument document)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ public M007_Payload_addAccessionId() : base("1.0.7") { }

public override void Up(BsonDocument document)
{
document.Add("AccessionId", new BsonString(""), true);
try
{
document.Add("AccessionId", new BsonString(""), true);
}
catch

Check warning on line 32 in src/WorkflowManager/Contracts/Migrations/M007_Payload_addAccessionId.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Handle the exception or explain in a comment why it can be ignored. (https://rules.sonarsource.com/csharp/RSPEC-2486)
{

Check warning on line 33 in src/WorkflowManager/Contracts/Migrations/M007_Payload_addAccessionId.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Either remove or fill this block of code. (https://rules.sonarsource.com/csharp/RSPEC-108)
}
}

public override void Down(BsonDocument document)
Expand Down

0 comments on commit 6943104

Please sign in to comment.