feat(api,espp, generator): Добавлены настройки для расписания рег работ. Добавлена сеть для всех контейнеров.
This commit is contained in:
1943
PARR.DAL/Migrations/20231009015400_TblTemplateAndSettingsSchedule.Designer.cs
generated
Normal file
1943
PARR.DAL/Migrations/20231009015400_TblTemplateAndSettingsSchedule.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TblTemplateAndSettingsSchedule : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ScheduleEsppId",
|
||||
table: "Templates",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Settings",
|
||||
columns: new[] { "Name", "Description", "Value" },
|
||||
values: new object[] { "ScheduleTimezone", "Расписание регламентной работы - В каком часовом поясе", "MSK" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "ScheduleTimezone");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScheduleEsppId",
|
||||
table: "Templates");
|
||||
}
|
||||
}
|
||||
}
|
||||
1955
PARR.DAL/Migrations/20231009054852_TblSettingsUpd.Designer.cs
generated
Normal file
1955
PARR.DAL/Migrations/20231009054852_TblSettingsUpd.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -999,6 +999,24 @@ namespace PARR.DAL.Migrations
|
||||
Name = "RobotWaitTime",
|
||||
Description = "Время ожидания выполнения роботом задания",
|
||||
Value = "00:15:00"
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "ScheduleTimezone",
|
||||
Description = "Расписание регламентной работы - В каком часовом поясе",
|
||||
Value = "MSK"
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "ScheduleExclude",
|
||||
Description = "Расписание регламентной работы - Тип исключения",
|
||||
Value = "Нет исключений"
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "ScheduleRepeatRange",
|
||||
Description = "Расписание регламентной работы - Диапазн повторов",
|
||||
Value = "Отсутствует дата завершения"
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1100,6 +1118,9 @@ namespace PARR.DAL.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ScheduleEsppId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ApplicationInWorkId");
|
||||
|
||||
Reference in New Issue
Block a user