Files
parr_api/PARR.DAL/Migrations/20230919055907_tblSettingsAIHITAddAreas.cs
2023-09-19 16:08:54 +10:00

179 lines
10 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblSettingsAIHITAddAreas : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("1ad12210-be62-459a-aa6c-fda7648503f7"));
migrationBuilder.UpdateData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("1fd43634-4a06-4237-9727-edfa6f3eebe8"),
column: "Name",
value: "ДВС");
migrationBuilder.UpdateData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("50f66704-4d26-4587-bb1e-dca70c8f4b89"),
column: "Name",
value: "ЗАБ");
migrationBuilder.InsertData(
schema: "AIHIT",
table: "Settings",
columns: new[] { "Id", "DateCreated", "DateModified", "Description", "Group", "Name", "Value" },
values: new object[,]
{
{ new Guid("17efaf65-ae8c-45f1-b187-e6cb1bd6385b"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "КЛГ", "10-КЛГ" },
{ new Guid("1943a65c-2060-4b5f-af1f-acec74835481"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ЮВСТ", "58-ЮВСТ" },
{ new Guid("42a2ec03-da3a-45fc-971e-399910fdc5ae"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ОКТ", "01-ОКТ" },
{ new Guid("4d9ef2ee-d4fa-4d28-a93b-6f1fd0a639f9"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ПРИВ", "61-ПРИВ" },
{ new Guid("51270997-20f6-4a61-85ac-64f6b6dd5dc4"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "МСК", "17-МСК" },
{ new Guid("52ba20ea-4e7a-4500-939b-e2cff563809a"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "СЕВ", "28-СЕВ" },
{ new Guid("a8cff6fd-28b7-49f2-a412-9208c10f6516"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ВСИБ", "92-ВСИБ" },
{ new Guid("b16afd06-605b-499f-9e35-a19586de96b0"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ГВЦ", "00-ГВЦ" },
{ new Guid("b3c73162-21ea-42f0-b0e1-3c5076176f8a"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "КРАСН", "88-КРАСН" },
{ new Guid("b94f8c38-e78a-494e-81ba-39e4e902ffcc"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ГОР", "24-ГОР" },
{ new Guid("c98fb684-ff03-441e-a9c3-ac5071d69857"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ЮУР", "80-ЮУР" },
{ new Guid("cb9da805-29e9-4e08-b1ed-d4b374920f77"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "СКВ", "51-СКВ" },
{ new Guid("cc839c48-62bb-46a8-924c-85b5e7a3e245"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "СВРД", "76-СВРД" },
{ new Guid("f1a54c25-a93a-4fe3-8268-afbcc435b6e9"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "КБШ", "63-КБШ" },
{ new Guid("f2684a90-6029-4476-bd3d-e713a8a228d6"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Зона ответственности", "ResponsibleArea", "ЗСИБ", "83-ЗСИБ" }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("17efaf65-ae8c-45f1-b187-e6cb1bd6385b"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("1943a65c-2060-4b5f-af1f-acec74835481"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("42a2ec03-da3a-45fc-971e-399910fdc5ae"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("4d9ef2ee-d4fa-4d28-a93b-6f1fd0a639f9"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("51270997-20f6-4a61-85ac-64f6b6dd5dc4"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("52ba20ea-4e7a-4500-939b-e2cff563809a"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("a8cff6fd-28b7-49f2-a412-9208c10f6516"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("b16afd06-605b-499f-9e35-a19586de96b0"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("b3c73162-21ea-42f0-b0e1-3c5076176f8a"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("b94f8c38-e78a-494e-81ba-39e4e902ffcc"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("c98fb684-ff03-441e-a9c3-ac5071d69857"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("cb9da805-29e9-4e08-b1ed-d4b374920f77"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("cc839c48-62bb-46a8-924c-85b5e7a3e245"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("f1a54c25-a93a-4fe3-8268-afbcc435b6e9"));
migrationBuilder.DeleteData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("f2684a90-6029-4476-bd3d-e713a8a228d6"));
migrationBuilder.UpdateData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("1fd43634-4a06-4237-9727-edfa6f3eebe8"),
column: "Name",
value: "DVS");
migrationBuilder.UpdateData(
schema: "AIHIT",
table: "Settings",
keyColumn: "Id",
keyValue: new Guid("50f66704-4d26-4587-bb1e-dca70c8f4b89"),
column: "Name",
value: "ZAB");
migrationBuilder.InsertData(
schema: "AIHIT",
table: "Settings",
columns: new[] { "Id", "DateCreated", "DateModified", "Description", "Group", "Name", "Value" },
values: new object[] { new Guid("1ad12210-be62-459a-aa6c-fda7648503f7"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Строка подключения к базе данных АИХ ИТ", null, "ConnectionString", "Data Source=10.248.19.97; Initial Catalog=mao2;User ID=awhit-ipp-parr;pwd=ET3h$9y1LH#D;TrustServerCertificate=true;" });
}
}
}