40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class TblSettingsUpd : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.InsertData(
|
|
table: "Settings",
|
|
columns: new[] { "Name", "Description", "Value" },
|
|
values: new object[,]
|
|
{
|
|
{ "ScheduleExclude", "Расписание регламентной работы - Тип исключения", "Нет исключений" },
|
|
{ "ScheduleRepeatRange", "Расписание регламентной работы - Диапазн повторов", "Отсутствует дата завершения" }
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "Settings",
|
|
keyColumn: "Name",
|
|
keyValue: "ScheduleExclude");
|
|
|
|
migrationBuilder.DeleteData(
|
|
table: "Settings",
|
|
keyColumn: "Name",
|
|
keyValue: "ScheduleRepeatRange");
|
|
}
|
|
}
|
|
}
|