Recreate initial migration

This commit is contained in:
2025-11-05 15:50:48 +09:00
parent 951ccd5924
commit 20d2de5070
3 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace Hcs.WebApp.Data.Hcs.Migrations
{
[DbContext(typeof(HcsDbContext))]
[Migration("20251101105658_CreateHcsSchema")]
[Migration("20251105064709_CreateHcsSchema")]
public partial class CreateHcsSchema
{
/// <inheritdoc />
@ -41,6 +41,9 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<int>("Progress")
.HasColumnType("int");
b.Property<DateTime?>("StartedAt")
.HasColumnType("datetime2");
@ -137,7 +140,6 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("Json")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<Guid>("RegistryId")

View File

@ -21,6 +21,7 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
StartedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
EndedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
Step = table.Column<int>(type: "int", nullable: false),
Progress = table.Column<int>(type: "int", nullable: false),
FailureReason = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
@ -82,7 +83,7 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
RegistryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Code = table.Column<string>(type: "nvarchar(max)", nullable: false),
GUID = table.Column<string>(type: "nvarchar(max)", nullable: false),
Json = table.Column<string>(type: "nvarchar(max)", nullable: false)
Json = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{

View File

@ -38,6 +38,9 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<int>("Progress")
.HasColumnType("int");
b.Property<DateTime?>("StartedAt")
.HasColumnType("datetime2");
@ -134,7 +137,6 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("Json")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<Guid>("RegistryId")