126 lines
4.8 KiB
C#
126 lines
4.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class addPositionExecutiveOld : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementOuts",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementOthers",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementDeceaseds",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementTransfers",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementRepatriations",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementReceives",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementOfficers",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutive",
|
|
table: "PlacementAppointments",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหาร")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementAppointments",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementOuts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementOthers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementDeceaseds");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementTransfers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementRepatriations");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementReceives");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementOfficers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutive",
|
|
table: "PlacementAppointments");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementAppointments");
|
|
}
|
|
}
|
|
}
|