hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231221041338_Add LeaveRange to LeaveRequest.cs
Suphonchai Phoonsawat d7be2da281 add LeaveRange to LeaveRequest
add
"dear": String, //*เรียน(4)
"leaveTotal": String, //*จำนวนวันขอยกเลิก(12)
2023-12-21 11:27:23 +07:00

30 lines
1,009 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddLeaveRangetoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "LeaveRange",
table: "LeaveRequests",
type: "longtext",
nullable: true,
comment: "ช่วงของการลา เช่น ลาทั้งวัน ครึ่งวันเช้า ครึ่งวันบ่าย")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LeaveRange",
table: "LeaveRequests");
}
}
}