feat(dal, aihitSyncer, aihitLoader): добавлена ЗО для РГ. Обновлён список ЗО. Обновлена синхронизация из АИХИТ.

This commit is contained in:
Mikhail Trubnikov
2024-06-18 14:28:38 +10:00
parent e6cca214d4
commit d4af32515d
15 changed files with 8561 additions and 11 deletions

View File

@@ -0,0 +1,59 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblWorkGroupRespAreaCodeRequired : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_WorkGroups_ResponseAreas_ResponseAreaCode",
table: "WorkGroups");
migrationBuilder.AlterColumn<int>(
name: "ResponseAreaCode",
table: "WorkGroups",
type: "integer",
nullable: false,
defaultValue: 0,
oldClrType: typeof(int),
oldType: "integer",
oldNullable: true);
migrationBuilder.AddForeignKey(
name: "FK_WorkGroups_ResponseAreas_ResponseAreaCode",
table: "WorkGroups",
column: "ResponseAreaCode",
principalTable: "ResponseAreas",
principalColumn: "Code",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_WorkGroups_ResponseAreas_ResponseAreaCode",
table: "WorkGroups");
migrationBuilder.AlterColumn<int>(
name: "ResponseAreaCode",
table: "WorkGroups",
type: "integer",
nullable: true,
oldClrType: typeof(int),
oldType: "integer");
migrationBuilder.AddForeignKey(
name: "FK_WorkGroups_ResponseAreas_ResponseAreaCode",
table: "WorkGroups",
column: "ResponseAreaCode",
principalTable: "ResponseAreas",
principalColumn: "Code");
}
}
}