diff --git a/Hcs.WebApp/Data/Hcs/Migrations/20251101105658_CreateHcsSchema.Designer.cs b/Hcs.WebApp/Data/Hcs/Migrations/20251105064709_CreateHcsSchema.Designer.cs similarity index 97% rename from Hcs.WebApp/Data/Hcs/Migrations/20251101105658_CreateHcsSchema.Designer.cs rename to Hcs.WebApp/Data/Hcs/Migrations/20251105064709_CreateHcsSchema.Designer.cs index 29b0898..a33bc6a 100644 --- a/Hcs.WebApp/Data/Hcs/Migrations/20251101105658_CreateHcsSchema.Designer.cs +++ b/Hcs.WebApp/Data/Hcs/Migrations/20251105064709_CreateHcsSchema.Designer.cs @@ -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 { /// @@ -41,6 +41,9 @@ namespace Hcs.WebApp.Data.Hcs.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("Progress") + .HasColumnType("int"); + b.Property("StartedAt") .HasColumnType("datetime2"); @@ -137,7 +140,6 @@ namespace Hcs.WebApp.Data.Hcs.Migrations .HasColumnType("nvarchar(max)"); b.Property("Json") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RegistryId") diff --git a/Hcs.WebApp/Data/Hcs/Migrations/20251101105658_CreateHcsSchema.cs b/Hcs.WebApp/Data/Hcs/Migrations/20251105064709_CreateHcsSchema.cs similarity index 98% rename from Hcs.WebApp/Data/Hcs/Migrations/20251101105658_CreateHcsSchema.cs rename to Hcs.WebApp/Data/Hcs/Migrations/20251105064709_CreateHcsSchema.cs index 744edc5..6c6298a 100644 --- a/Hcs.WebApp/Data/Hcs/Migrations/20251101105658_CreateHcsSchema.cs +++ b/Hcs.WebApp/Data/Hcs/Migrations/20251105064709_CreateHcsSchema.cs @@ -21,6 +21,7 @@ namespace Hcs.WebApp.Data.Hcs.Migrations StartedAt = table.Column(type: "datetime2", nullable: true), EndedAt = table.Column(type: "datetime2", nullable: true), Step = table.Column(type: "int", nullable: false), + Progress = table.Column(type: "int", nullable: false), FailureReason = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => @@ -82,7 +83,7 @@ namespace Hcs.WebApp.Data.Hcs.Migrations RegistryId = table.Column(type: "uniqueidentifier", nullable: false), Code = table.Column(type: "nvarchar(max)", nullable: false), GUID = table.Column(type: "nvarchar(max)", nullable: false), - Json = table.Column(type: "nvarchar(max)", nullable: false) + Json = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { diff --git a/Hcs.WebApp/Data/Hcs/Migrations/HcsDbContextModelSnapshot.cs b/Hcs.WebApp/Data/Hcs/Migrations/HcsDbContextModelSnapshot.cs index 2d2b31c..12f5d64 100644 --- a/Hcs.WebApp/Data/Hcs/Migrations/HcsDbContextModelSnapshot.cs +++ b/Hcs.WebApp/Data/Hcs/Migrations/HcsDbContextModelSnapshot.cs @@ -38,6 +38,9 @@ namespace Hcs.WebApp.Data.Hcs.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("Progress") + .HasColumnType("int"); + b.Property("StartedAt") .HasColumnType("datetime2"); @@ -134,7 +137,6 @@ namespace Hcs.WebApp.Data.Hcs.Migrations .HasColumnType("nvarchar(max)"); b.Property("Json") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RegistryId")