hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20240712044503_Add CitizenId to LeaveRequest.cs
Suphonchai Phoonsawat 1a6fe487aa fix: Leave Optimize
2024-07-12 11:58:32 +07:00

29 lines
826 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddCitizenIdtoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "CitizenId",
table: "LeaveRequests",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CitizenId",
table: "LeaveRequests");
}
}
}