Files
parr_api/PARR.DAL/Migrations/20260320054600_tblJobGroupAddIsGroupByResponsible.cs

41 lines
1.2 KiB
C#

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