using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
///
public partial class updatetableplacementProfileadddnaroot1 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "child1DnaOldId",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child1 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child2DnaOldId",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child2 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child3DnaOldId",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child3 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child4DnaOldId",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child4 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "rootDnaOldId",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน root old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child1DnaOldId",
table: "RetirementResignEmployees",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child1 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child2DnaOldId",
table: "RetirementResignEmployees",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child2 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child3DnaOldId",
table: "RetirementResignEmployees",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child3 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child4DnaOldId",
table: "RetirementResignEmployees",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child4 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "rootDnaOldId",
table: "RetirementResignEmployees",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน root old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child1DnaId",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child1 ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child2DnaId",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child2 ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child3DnaId",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child3 ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child4DnaId",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child4 ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "rootDnaId",
table: "RetirementProfiles",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน root ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child1DnaOldId",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child1 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child2DnaOldId",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child2 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child3DnaOldId",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child3 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child4DnaOldId",
table: "RetirementOuts",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child4 old")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "rootDnaOldId",
table: "RetirementOuts",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child1DnaId",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child1")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child2DnaId",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child2")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child3DnaId",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child3")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "child4DnaId",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน child4")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "rootDnaId",
table: "RetirementDeceaseds",
type: "longtext",
nullable: true,
comment: "id หน่วยงาน root")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "child1DnaOldId",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "child2DnaOldId",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "child3DnaOldId",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "child4DnaOldId",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "rootDnaOldId",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "child1DnaOldId",
table: "RetirementResignEmployees");
migrationBuilder.DropColumn(
name: "child2DnaOldId",
table: "RetirementResignEmployees");
migrationBuilder.DropColumn(
name: "child3DnaOldId",
table: "RetirementResignEmployees");
migrationBuilder.DropColumn(
name: "child4DnaOldId",
table: "RetirementResignEmployees");
migrationBuilder.DropColumn(
name: "rootDnaOldId",
table: "RetirementResignEmployees");
migrationBuilder.DropColumn(
name: "child1DnaId",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "child2DnaId",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "child3DnaId",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "child4DnaId",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "rootDnaId",
table: "RetirementProfiles");
migrationBuilder.DropColumn(
name: "child1DnaOldId",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "child2DnaOldId",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "child3DnaOldId",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "child4DnaOldId",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "rootDnaOldId",
table: "RetirementOuts");
migrationBuilder.DropColumn(
name: "child1DnaId",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "child2DnaId",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "child3DnaId",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "child4DnaId",
table: "RetirementDeceaseds");
migrationBuilder.DropColumn(
name: "rootDnaId",
table: "RetirementDeceaseds");
}
}
}