Skip to content

Commit fe16d15

Browse files
committed
Update database migration for R2
Signed-off-by: Victor Chang <[email protected]>
1 parent f923253 commit fe16d15

File tree

3 files changed

+203
-1
lines changed

3 files changed

+203
-1
lines changed

src/Database/Migrations/20220310211304_R2_Update.Designer.cs

Lines changed: 173 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using Microsoft.EntityFrameworkCore.Migrations;
2+
3+
#nullable disable
4+
5+
namespace Monai.Deploy.InformaticsGateway.Database.Migrations
6+
{
7+
public partial class R2_Update : Migration
8+
{
9+
protected override void Up(MigrationBuilder migrationBuilder)
10+
{
11+
migrationBuilder.AddColumn<int>(
12+
name: "Count",
13+
table: "Payload",
14+
type: "INTEGER",
15+
nullable: false,
16+
defaultValue: 0);
17+
}
18+
19+
protected override void Down(MigrationBuilder migrationBuilder)
20+
{
21+
migrationBuilder.DropColumn(
22+
name: "Count",
23+
table: "Payload");
24+
}
25+
}
26+
}

src/Database/Migrations/InformaticsGatewayContextModelSnapshot.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ partial class InformaticsGatewayContextModelSnapshot : ModelSnapshot
1515
protected override void BuildModel(ModelBuilder modelBuilder)
1616
{
1717
#pragma warning disable 612, 618
18-
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
18+
modelBuilder.HasAnnotation("ProductVersion", "6.0.3");
1919

2020
modelBuilder.Entity("Monai.Deploy.InformaticsGateway.Api.DestinationApplicationEntity", b =>
2121
{
@@ -133,6 +133,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
133133
b.Property<string>("CorrelationId")
134134
.HasColumnType("TEXT");
135135

136+
b.Property<int>("Count")
137+
.HasColumnType("INTEGER");
138+
136139
b.Property<DateTime>("DateTimeCreated")
137140
.HasColumnType("TEXT");
138141

0 commit comments

Comments
 (0)