feat(dal): в настройки добавлено поле EsppUnitTag

This commit is contained in:
Mikhail Trubnikov
2025-12-25 13:53:38 +10:00
parent 8c7c092a06
commit c7fdf9f97d
5 changed files with 3986 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View 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");
}
}
}

View File

@@ -2537,6 +2537,12 @@ namespace PARR.DAL.Migrations
Name = "TemplateNameConstantParts",
Description = "Список неизменных частей имени шаблона",
Value = "[{\"Name\":\"П-1\",\"Value\":\"ЭИТИ\"},{\"Name\":\"П-2\",\"Value\":\"ПАРР\"}]"
},
new
{
Name = "EsppUnitTag",
Description = "Префикс тега в поле ЭК \"Дополнительная информация\"",
Value = "ПАРР-"
});
});