fix(dal,aihitMainSyncer): FieldValues поле Value теперь уникально. В aihitMainSyncer поднят уровень журналированияя

This commit is contained in:
Mikhail Kuznetsov
2025-05-21 16:50:00 +10:00
parent cd40adaa91
commit 6daf54fc56
7 changed files with 3539 additions and 10 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,41 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblFieldValuesValueIsUniqueClmn : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_FieldValues_Value",
schema: "unit",
table: "FieldValues");
migrationBuilder.CreateIndex(
name: "IX_FieldValues_Value",
schema: "unit",
table: "FieldValues",
column: "Value",
unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_FieldValues_Value",
schema: "unit",
table: "FieldValues");
migrationBuilder.CreateIndex(
name: "IX_FieldValues_Value",
schema: "unit",
table: "FieldValues",
column: "Value");
}
}
}

View File

@@ -2621,7 +2621,8 @@ namespace PARR.DAL.Migrations
b.HasKey("Id");
b.HasIndex("Value");
b.HasIndex("Value")
.IsUnique();
b.ToTable("FieldValues", "unit", t =>
{