feat(api,dal): В группу работ добавлено поле IsGroupByResponsible
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user