Skip to content

Commit f0891aa

Browse files
authored
Merge pull request #1010 from Project-MONAI/nds-addAccessionId
fix up for migrations
2 parents 657ca97 + 87254b8 commit f0891aa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/WorkflowManager/Contracts/Migrations/M005_Payload_seriesUid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public override void Up(BsonDocument document)
2727
{
2828
try
2929
{
30-
document.Add("SeriesInstanceUid", BsonNull.Create(null).ToJson(), true);
30+
document.Add("SeriesInstanceUid", new BsonString(""), true);
3131
}
3232
catch
3333
{

src/WorkflowManager/Contracts/Migrations/M006_Payload_triggeredWorkflows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public override void Up(BsonDocument document)
2727
{
2828
try
2929
{
30-
document.Add("TriggeredWorkflowNames", BsonNull.Create(null).ToJson(), true);
30+
document.Add("TriggeredWorkflowNames", new BsonArray());
3131
}
3232
catch
3333
{

src/WorkflowManager/Contracts/Models/Payload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
namespace Monai.Deploy.WorkflowManager.Common.Contracts.Models
2929
{
30-
[CollectionLocation("Payloads"), RuntimeVersion("1.0.7"), StartUpVersion("1.0.7")]
30+
[CollectionLocation("Payloads"), RuntimeVersion("1.0.7")]
3131
public class Payload : IDocument
3232
{
3333
[JsonConverter(typeof(DocumentVersionConvert)), BsonSerializer(typeof(DocumentVersionConverBson))]

src/WorkflowManager/Contracts/Models/WorkflowRevision.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Monai.Deploy.WorkflowManager.Common.Contracts.Models
2525
{
26-
[CollectionLocation("Workflows"), RuntimeVersion("1.0.4"), StartUpVersion("1.0.4")]
26+
[CollectionLocation("Workflows"), RuntimeVersion("1.0.4")]
2727
public class WorkflowRevision : ISoftDeleteable, IDocument
2828
{
2929
[BsonId]

0 commit comments

Comments
 (0)