hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20250523034727_update_table_retirementresign_add_group.cs
moss dc3c5a82a1
Some checks failed
release-dev / release-dev (push) Failing after 11s
step ระบบลาออก
2025-05-23 10:49:40 +07:00

42 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class update_table_retirementresign_add_group : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Group",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "คนยื่นมาอยู่ในกลุ่ม")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Group",
table: "RetirementResignEmployees",
type: "longtext",
nullable: true,
comment: "คนยื่นมาอยู่ในกลุ่ม")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Group",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "Group",
table: "RetirementResignEmployees");
}
}
}