Merge branch 'dev' of http://gitlab.dvgd.oao.rzd/devptk/parr/parr_api into dev
This commit is contained in:
@@ -194,7 +194,8 @@ namespace PARR.DAL.Context
|
||||
new TemplateNameConstantPart { Name = "П-1", Value = "ЭИТИ" },
|
||||
new TemplateNameConstantPart { Name = "П-2", Value = "ПАРР" }
|
||||
}.ToJson()
|
||||
}
|
||||
},
|
||||
new { Name = nameof(SettingsFromDb.EsppUnitTag), Description = "Префикс тега в поле ЭК \"Дополнительная информация\"", Value = "ПАРР-" }
|
||||
);
|
||||
});
|
||||
#endregion
|
||||
|
||||
@@ -112,6 +112,11 @@ namespace PARR.DAL.Contracts
|
||||
/// </summary>
|
||||
public TimeSpan WeekendCacheTtl { get; set; } = new TimeSpan(0, 5, 0);
|
||||
|
||||
/// <summary>
|
||||
/// Префикс тега в поле ЭК "Дополнительная информация"
|
||||
/// </summary>
|
||||
public string EsppUnitTag { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
3941
PARR.DAL/Migrations/20251225035131_settingsAddEsppUnitTag.Designer.cs
generated
Normal file
3941
PARR.DAL/Migrations/20251225035131_settingsAddEsppUnitTag.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
PARR.DAL/Migrations/20251225035131_settingsAddEsppUnitTag.cs
Normal file
28
PARR.DAL/Migrations/20251225035131_settingsAddEsppUnitTag.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class settingsAddEsppUnitTag : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "Settings",
|
||||
columns: new[] { "Name", "Description", "Value" },
|
||||
values: new object[] { "EsppUnitTag", "Префикс тега в поле ЭК \"Дополнительная информация\"", "ПАРР-" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "EsppUnitTag");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2537,6 +2537,12 @@ namespace PARR.DAL.Migrations
|
||||
Name = "TemplateNameConstantParts",
|
||||
Description = "Список неизменных частей имени шаблона",
|
||||
Value = "[{\"Name\":\"П-1\",\"Value\":\"ЭИТИ\"},{\"Name\":\"П-2\",\"Value\":\"ПАРР\"}]"
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "EsppUnitTag",
|
||||
Description = "Префикс тега в поле ЭК \"Дополнительная информация\"",
|
||||
Value = "ПАРР-"
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user