Add New API and Correct Reopen Issue

This commit is contained in:
Suphonchai Phoonsawat 2023-12-08 10:44:42 +07:00
parent 84e656b0c8
commit 3b054f21cc
13 changed files with 2678 additions and 4 deletions

View file

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