feat(api,dal): В группу работ добавлено поле IsGroupByResponsible

This commit is contained in:
Mikhail Trubnikov
2026-03-20 15:50:00 +10:00
parent 42ac353198
commit 630b645267
7 changed files with 4295 additions and 33 deletions

View File

@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblJobGroupAddIsGroupByResponsible : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsGroupByResponsible",
schema: "job",
table: "Groups",
type: "boolean",
nullable: true);
migrationBuilder.InsertData(
table: "ParrComponents",
columns: new[] { "Id", "Description", "Name" },
values: new object[] { 13, "Генератор шаблонов", "TemplateTaskGenerator" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "ParrComponents",
keyColumn: "Id",
keyValue: 13);
migrationBuilder.DropColumn(
name: "IsGroupByResponsible",
schema: "job",
table: "Groups");
}
}
}