hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20260115140500_add_fields_table_eaveequestpprover.cs
harid 64c1021c52
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m18s
Migrate เก็บฟิลด์ใช้แสดงในรายงานลาเพิ่ม #2195
2026-01-16 09:25:22 +07:00

54 lines
1.8 KiB
C#

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