using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
///
public partial class add_fields_table_eaveequestpprover : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "OrganizationName",
table: "LeaveRequestApprovers",
type: "longtext",
nullable: false,
comment: "สังกัด")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "PosExecutiveName",
table: "LeaveRequestApprovers",
type: "longtext",
nullable: false,
comment: "ตำแหน่งทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "PositionLevelName",
table: "LeaveRequestApprovers",
type: "longtext",
nullable: false,
comment: "ประเภทระดับตำแหน่ง")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "OrganizationName",
table: "LeaveRequestApprovers");
migrationBuilder.DropColumn(
name: "PosExecutiveName",
table: "LeaveRequestApprovers");
migrationBuilder.DropColumn(
name: "PositionLevelName",
table: "LeaveRequestApprovers");
}
}
}