Fix данных ResponseArea
This commit is contained in:
@@ -279,6 +279,7 @@ namespace PARR.AIHIT
|
||||
|
||||
var foundHost = await hostService.GetHostWithAppsAsync(ek.IP);
|
||||
var mappedHost = mapper.Map<Host>(ek);
|
||||
//TODO Валидация по внешним связям
|
||||
|
||||
var hostApplications = await GetAndFillApplicationsAsync(ek);
|
||||
|
||||
|
||||
@@ -142,7 +142,8 @@ namespace PARR.DAL.Context
|
||||
{
|
||||
f.HasData(
|
||||
new { Code = (int)ResponseAreaEnum.dvgd, Name = "96-ДВС" },
|
||||
new { Code = (int)ResponseAreaEnum.zrw, Name = "92-ВСИБ" },
|
||||
new { Code = (int)ResponseAreaEnum.zrw, Name = "94-ЗАБ" },
|
||||
new { Code = (int)ResponseAreaEnum.esrr, Name = "92-ВСИБ" },
|
||||
new { Code = (int)ResponseAreaEnum.krw, Name = "88-КРАСН" },
|
||||
new { Code = (int)ResponseAreaEnum.wsr, Name = "83-ЗСИБ" },
|
||||
new { Code = (int)ResponseAreaEnum.surw, Name = "80-ЮУР" },
|
||||
|
||||
1635
PARR.DAL/Migrations/20230928045046_TblRespAreaFix.Designer.cs
generated
Normal file
1635
PARR.DAL/Migrations/20230928045046_TblRespAreaFix.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
42
PARR.DAL/Migrations/20230928045046_TblRespAreaFix.cs
Normal file
42
PARR.DAL/Migrations/20230928045046_TblRespAreaFix.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TblRespAreaFix : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "ResponseAreas",
|
||||
keyColumn: "Code",
|
||||
keyValue: 94,
|
||||
column: "Name",
|
||||
value: "94-ЗАБ");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "ResponseAreas",
|
||||
columns: new[] { "Code", "Name" },
|
||||
values: new object[] { 92, "92-ВСИБ" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "ResponseAreas",
|
||||
keyColumn: "Code",
|
||||
keyValue: 92);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "ResponseAreas",
|
||||
keyColumn: "Code",
|
||||
keyValue: 94,
|
||||
column: "Name",
|
||||
value: "92-ВСИБ");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -659,6 +659,11 @@ namespace PARR.DAL.Migrations
|
||||
new
|
||||
{
|
||||
Code = 94,
|
||||
Name = "94-ЗАБ"
|
||||
},
|
||||
new
|
||||
{
|
||||
Code = 92,
|
||||
Name = "92-ВСИБ"
|
||||
},
|
||||
new
|
||||
|
||||
Reference in New Issue
Block a user