Redo initial migration
This commit is contained in:
@ -7,7 +7,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||||||
namespace Hcs.WebApp.Data.Hcs.Migrations
|
namespace Hcs.WebApp.Data.Hcs.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(HcsDbContext))]
|
[DbContext(typeof(HcsDbContext))]
|
||||||
[Migration("20251028065710_CreateHcsSchema")]
|
[Migration("20251101105658_CreateHcsSchema")]
|
||||||
public partial class CreateHcsSchema
|
public partial class CreateHcsSchema
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -102,9 +102,6 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
b.Property<bool>("IsCommon")
|
b.Property<bool>("IsCommon")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b.Property<string>("LastSyncError")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<int?>("LastSyncOperationId")
|
b.Property<int?>("LastSyncOperationId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
@ -139,13 +136,13 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid>("RegistryId")
|
b.Property<string>("Json")
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("Xml")
|
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<Guid>("RegistryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("RegistryId");
|
b.HasIndex("RegistryId");
|
||||||
@ -62,8 +62,7 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
IsCommon = table.Column<bool>(type: "bit", nullable: false),
|
IsCommon = table.Column<bool>(type: "bit", nullable: false),
|
||||||
SyncedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
SyncedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
LastSyncOperationId = table.Column<int>(type: "int", nullable: true),
|
LastSyncOperationId = table.Column<int>(type: "int", nullable: true)
|
||||||
LastSyncError = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
@ -83,7 +82,7 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
RegistryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
RegistryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Code = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Code = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
GUID = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
GUID = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
Xml = table.Column<string>(type: "nvarchar(max)", nullable: false)
|
Json = table.Column<string>(type: "nvarchar(max)", nullable: false)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
@ -99,9 +99,6 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
b.Property<bool>("IsCommon")
|
b.Property<bool>("IsCommon")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b.Property<string>("LastSyncError")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<int?>("LastSyncOperationId")
|
b.Property<int?>("LastSyncOperationId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
@ -136,13 +133,13 @@ namespace Hcs.WebApp.Data.Hcs.Migrations
|
|||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid>("RegistryId")
|
b.Property<string>("Json")
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("Xml")
|
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<Guid>("RegistryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("RegistryId");
|
b.HasIndex("RegistryId");
|
||||||
|
|||||||
Reference in New Issue
Block a user