hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231208024029_Add Field ApproveStep to LeaveRequest.cs
2023-12-08 10:44:42 +07:00

30 lines
1,012 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddFieldApproveSteptoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ApproveStep",
table: "LeaveRequests",
type: "longtext",
nullable: false,
comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ApproveStep",
table: "LeaveRequests");
}
}
}