using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
///
public partial class updatetableresignaddcommander1 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "CommanderReject",
table: "RetirementResigns",
type: "tinyint(1)",
nullable: true,
comment: "สถานะยับยั้งผู้บังคับบัญชา");
migrationBuilder.AddColumn(
name: "CommanderRejectDate",
table: "RetirementResigns",
type: "datetime(6)",
nullable: true,
comment: "วันที่ยับยั้งผู้บังคับบัญชา");
migrationBuilder.AddColumn(
name: "CommanderRejectReason",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "เหตุผลยับยั้งผู้บังคับบัญชา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OligarchReject",
table: "RetirementResigns",
type: "tinyint(1)",
nullable: true,
comment: "สถานะยับยั้งผู้ดูแล");
migrationBuilder.AddColumn(
name: "OligarchRejectDate",
table: "RetirementResigns",
type: "datetime(6)",
nullable: true,
comment: "วันที่ยับยั้งผู้ดูแล");
migrationBuilder.AddColumn(
name: "OligarchRejectReason",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "เหตุผลยับยั้งผู้ดูแล")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CommanderReject",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "CommanderRejectDate",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "CommanderRejectReason",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "OligarchReject",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "OligarchRejectDate",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "OligarchRejectReason",
table: "RetirementResigns");
}
}
}