migrate + add field PositionExecutiveOld
This commit is contained in:
parent
71a1c48392
commit
1b6cc4f014
20 changed files with 20131 additions and 1 deletions
19916
BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.Designer.cs
generated
Normal file
19916
BMA.EHR.Infrastructure/Migrations/20250321061705_addPositionExecutiveOld.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,126 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11441,6 +11441,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ดำรงตำแหน่งในระดับปัจจุบันเมื่อ");
|
||||
|
||||
b.Property<string>("PositionExecutive")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหาร");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
@ -12227,6 +12235,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
@ -13243,6 +13255,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
@ -13922,6 +13938,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
@ -14143,6 +14163,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
@ -14573,6 +14597,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("เลขที่ใบมรณบัตร");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลการเสียชีวิต");
|
||||
|
|
@ -15108,6 +15136,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ดำรงตำแหน่งในระดับปัจจุบันเมื่อ");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
@ -15397,6 +15429,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
||||
b.Property<string>("PositionExecutiveOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งทางการบริหารเดิม");
|
||||
|
||||
b.Property<string>("PositionLevelOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ระดับ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue