feat(api,espp, generator): Добавлены настройки для расписания рег работ. Добавлена сеть для всех контейнеров.
This commit is contained in:
39
PARR.DAL/Migrations/20231009054852_TblSettingsUpd.cs
Normal file
39
PARR.DAL/Migrations/20231009054852_TblSettingsUpd.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user