hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231204045512_change LeaveCancelStatus to LeaveRequest.cs
Suphonchai Phoonsawat 0c2814e53b add
LV2_015 - รายการขอยกเลิกการลา (ADMIN)
LV2_008 - ขอยกเลิกการลา (USER)
2023-12-04 12:10:46 +07:00

42 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class changeLeaveCancelStatustoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsComplete",
table: "LeaveRequests");
migrationBuilder.AddColumn<string>(
name: "LeaveCancelStatus",
table: "LeaveRequests",
type: "longtext",
nullable: true,
comment: "สถานะของคำขอยกเลิก")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LeaveCancelStatus",
table: "LeaveRequests");
migrationBuilder.AddColumn<bool>(
name: "IsComplete",
table: "LeaveRequests",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "สถานะการทำงานของคำขอว่าสิ้นสุดการทำงานหรือไม่");
}
}
}