hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20250616073836_Add Field Placement and Retire.cs
Suphonchai Phoonsawat 326a258e2b
Some checks failed
release-dev / release-dev (push) Failing after 11s
add migration placement and retire
2025-06-16 14:40:38 +07:00

642 lines
24 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldPlacementandRetire : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementRawProfiles",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementRawProfiles",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementRawProfiles",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementRawProfiles",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementOthers",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementOthers",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementOthers",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementOthers",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "PlacementTransfers",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "PlacementTransfers",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "PlacementTransfers",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "PlacementTransfers",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "PlacementRepatriations",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "PlacementRepatriations",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "PlacementRepatriations",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "PlacementRepatriations",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "PlacementOfficers",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "PlacementOfficers",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "PlacementOfficers",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "PlacementOfficers",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionArea",
table: "PlacementAppointments",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionAreaOld",
table: "PlacementAppointments",
type: "longtext",
nullable: true,
comment: "ด้าน/สาขา (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveField",
table: "PlacementAppointments",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "positionExecutiveFieldOld",
table: "PlacementAppointments",
type: "longtext",
nullable: true,
comment: "ด้านทางการบริหาร (เก่า)")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementRawProfiles");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementRawProfiles");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementRawProfiles");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementRawProfiles");
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementOthers");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementOthers");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementOthers");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementOthers");
migrationBuilder.DropColumn(
name: "positionArea",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "positionArea",
table: "PlacementTransfers");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "PlacementTransfers");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "PlacementTransfers");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "PlacementTransfers");
migrationBuilder.DropColumn(
name: "positionArea",
table: "PlacementRepatriations");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "PlacementRepatriations");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "PlacementRepatriations");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "PlacementRepatriations");
migrationBuilder.DropColumn(
name: "positionArea",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "positionArea",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "positionArea",
table: "PlacementOfficers");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "PlacementOfficers");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "PlacementOfficers");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "PlacementOfficers");
migrationBuilder.DropColumn(
name: "positionArea",
table: "PlacementAppointments");
migrationBuilder.DropColumn(
name: "positionAreaOld",
table: "PlacementAppointments");
migrationBuilder.DropColumn(
name: "positionExecutiveField",
table: "PlacementAppointments");
migrationBuilder.DropColumn(
name: "positionExecutiveFieldOld",
table: "PlacementAppointments");
}
}
}