hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20250527123821_update_table_retirementresignemp_add_group.cs
moss 4b43104400
Some checks failed
release-dev / release-dev (push) Failing after 13s
ยกเลิกลูกจ้าง
2025-05-27 19:48:38 +07:00

109 lines
4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class update_table_retirementresignemp_add_group : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ApproveStep",
table: "RetirementResignEmployeeCancels",
type: "longtext",
nullable: true,
comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Group",
table: "RetirementResignEmployeeCancels",
type: "longtext",
nullable: true,
comment: "คนยื่นมาอยู่ในกลุ่ม")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Org",
table: "RetirementResignEmployeeCancelApprovers",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "RejectDate",
table: "RetirementResignEmployeeCancelApprovers",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ApproveStep",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Group",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "คนยื่นมาอยู่ในกลุ่ม")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Org",
table: "RetirementResignCancelApprovers",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "RejectDate",
table: "RetirementResignCancelApprovers",
type: "datetime(6)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ApproveStep",
table: "RetirementResignEmployeeCancels");
migrationBuilder.DropColumn(
name: "Group",
table: "RetirementResignEmployeeCancels");
migrationBuilder.DropColumn(
name: "Org",
table: "RetirementResignEmployeeCancelApprovers");
migrationBuilder.DropColumn(
name: "RejectDate",
table: "RetirementResignEmployeeCancelApprovers");
migrationBuilder.DropColumn(
name: "ApproveStep",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "Group",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "Org",
table: "RetirementResignCancelApprovers");
migrationBuilder.DropColumn(
name: "RejectDate",
table: "RetirementResignCancelApprovers");
}
}
}