Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Api/Monai.Deploy.InformaticsGateway.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</PackageReference>
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="6.0.9" />
<PackageReference Include="Monai.Deploy.Messaging" Version="0.1.7-rc0009" />
<PackageReference Include="Monai.Deploy.Messaging" Version="0.1.8" />
<PackageReference Include="Monai.Deploy.Storage" Version="0.2.7" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageReference Include="Monai.Deploy.Messaging" Version="0.1.7-rc0009" />
<PackageReference Include="Monai.Deploy.Messaging" Version="0.1.8" />
<PackageReference Include="Monai.Deploy.Storage" Version="0.2.7" />
<PackageReference Include="System.IO.Abstractions" Version="17.2.3" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Database/DestinationApplicationEntityConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public void Configure(EntityTypeBuilder<DestinationApplicationEntity> builder)
builder.Property(j => j.AeTitle).IsRequired();
builder.Property(j => j.Port).IsRequired();
builder.Property(j => j.HostIp).IsRequired();

builder.HasIndex(p => p.Name, "idx_destination_name").IsUnique();
builder.HasIndex(p => new { p.Name, p.AeTitle, p.HostIp, p.Port }, "idx_source_all").IsUnique();
}
}
}
4 changes: 4 additions & 0 deletions src/Database/InferenceRequestConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public void Configure(EntityTypeBuilder<InferenceRequest> builder)
builder.Property(j => j.TryCount).IsRequired();

builder.Ignore(p => p.Application);

builder.HasIndex(p => p.State, "idx_inferencerequest_state");
builder.HasIndex(p => p.InferenceRequestId, "idx_inferencerequest_inferencerequestid").IsUnique();
builder.HasIndex(p => p.TransactionId, "idx_inferencerequest_transactionid").IsUnique();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Database/Migrations/20220802200605_R3_0.3.0.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright 2022 MONAI Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -57,4 +57,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
defaultValue: "");
}
}
}
}
221 changes: 221 additions & 0 deletions src/Database/Migrations/20221010184458_R3_0.3.2.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions src/Database/Migrations/20221010184458_R3_0.3.2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Monai.Deploy.InformaticsGateway.Database.Migrations
{
public partial class R3_032 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{

}

protected override void Down(MigrationBuilder migrationBuilder)
{

}
}
}
Loading