feat(api,bll,dal,esppScheduleSync,TemplateGenerator): изменен рассчет nextRun для задания роботу и синхронизатору, подставляется в зависимости от настроек ЗО и таймзоны УЗ робота ЕСПП. Переименование полей в БД
This commit is contained in:
52
PARR.DAL/Migrations/20260203055426_tblRenameFields.cs
Normal file
52
PARR.DAL/Migrations/20260203055426_tblRenameFields.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblRenameFields : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "TimeOffset",
|
||||
schema: "schedule",
|
||||
table: "ResponseAreaTimeOffsets",
|
||||
newName: "EsppValue");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "IsWorkGroupTimezone",
|
||||
schema: "job",
|
||||
table: "Groups",
|
||||
newName: "IsResponseAreaTimezone");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Settings",
|
||||
columns: new[] { "Name", "Description", "Value" },
|
||||
values: new object[] { "DefaultResponseAreaToTimeOffset", "Зона ответственности для получения тайм зоны по умолчанию для расписаний", "17-МСК" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "DefaultResponseAreaToTimeOffset");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "EsppValue",
|
||||
schema: "schedule",
|
||||
table: "ResponseAreaTimeOffsets",
|
||||
newName: "TimeOffset");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "IsResponseAreaTimezone",
|
||||
schema: "job",
|
||||
table: "Groups",
|
||||
newName: "IsWorkGroupTimezone");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user