hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250409090154_Add Leave CommanderPosition.cs
Suphonchai Phoonsawat 50f3d22090 Add Migration
2025-04-09 16:05:07 +07:00

29 lines
841 B
C#

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