feat(dal,api): расширена таблица Job, добавлеа маска рабочей группы. Теперь можно генерировать шаблоны с единой экстерриториальной группой

This commit is contained in:
Mikhail Kuznetsov
2025-08-22 11:25:51 +10:00
parent d30093dfef
commit a6385ea39a
12 changed files with 3957 additions and 145 deletions

View File

@@ -0,0 +1,63 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblJobAddClmnisParentRelationshipsAndWorkGroupMask : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TemplateNameMask",
schema: "job",
table: "Jobs",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "WorkGroupMask",
schema: "job",
table: "Jobs",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<bool>(
name: "isParentRelationships",
schema: "job",
table: "Jobs",
type: "boolean",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "WorkGroupMask",
schema: "job",
table: "Jobs");
migrationBuilder.DropColumn(
name: "isParentRelationships",
schema: "job",
table: "Jobs");
migrationBuilder.AlterColumn<string>(
name: "TemplateNameMask",
schema: "job",
table: "Jobs",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
}
}
}