add LeaveRange to LeaveRequest

add
"dear": String, //*เรียน(4)
"leaveTotal": String, //*จำนวนวันขอยกเลิก(12)
This commit is contained in:
Suphonchai Phoonsawat 2023-12-21 11:27:23 +07:00
parent 203e901767
commit d7be2da281
8 changed files with 1029 additions and 15 deletions

View file

@ -0,0 +1,30 @@
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");
}
}
}