Add Migration
This commit is contained in:
parent
ab5afff6e0
commit
16ac719f8a
3 changed files with 15951 additions and 0 deletions
15685
BMA.EHR.Infrastructure/Migrations/20230825053216_Add field For CommandType 10-17.Designer.cs
generated
Normal file
15685
BMA.EHR.Infrastructure/Migrations/20230825053216_Add field For CommandType 10-17.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,204 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddfieldForCommandType1017 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ChairManFullName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ประธานคณะกรรมการ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ConclusionReceiveDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "ลงวันที่ (การรับโอน)");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ConclusionReceiveNo",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "มติ กก. ครั้งที่ (การรับโอน)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "GovAidCommandDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "GovAidCommandNo",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Member1FullName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "กรรมการคนที่ 1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Member2FullName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "กรรมการคนที่ 2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "PlacementCommandDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "คำสั่งบรรจุลงวันที่");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PlacementCommandIssuer",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หน่วยงานที่ออกคำสั่งบรรจุ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PlacementCommandNo",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "เลขที่คำสั่งบรรจุ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PlacementOrganizationName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดที่บรรจุ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PlacementPositionName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งที่บรรจุ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ProbationEndDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันที่สิ้นสุดการทดลองปฏิบัติราชการ");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ProbationStartDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันที่เริ่มทดลองปฏิบัติราชการ");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ReceiveOrganizationName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ส่วนราชการที่รับโอน")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TransferOrganizationName",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ส่วนราชการที่ให้โอน")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ChairManFullName",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ConclusionReceiveDate",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ConclusionReceiveNo",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "GovAidCommandDate",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "GovAidCommandNo",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Member1FullName",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Member2FullName",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlacementCommandDate",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlacementCommandIssuer",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlacementCommandNo",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlacementOrganizationName",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlacementPositionName",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProbationEndDate",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProbationStartDate",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReceiveOrganizationName",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TransferOrganizationName",
|
||||
table: "Commands");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -42,6 +42,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("char(36)")
|
||||
.HasComment("รหัสอ้างอิงผู้มีอำนาจลงนาม");
|
||||
|
||||
b.Property<string>("ChairManFullName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ประธานคณะกรรมการ");
|
||||
|
||||
b.Property<DateTime?>("CommandAffectDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่คำสั่งมีผล");
|
||||
|
|
@ -84,6 +88,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("การประชุม ครั้งที่");
|
||||
|
||||
b.Property<DateTime?>("ConclusionReceiveDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ลงวันที่ (การรับโอน)");
|
||||
|
||||
b.Property<string>("ConclusionReceiveNo")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("มติ กก. ครั้งที่ (การรับโอน)");
|
||||
|
||||
b.Property<DateTime?>("ConclusionRegisterDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ลงวันที่ (เรื่อง รับสมัครสอบฯ)");
|
||||
|
|
@ -127,6 +139,12 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<DateTime?>("GovAidCommandDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("GovAidCommandNo")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<Guid>("IssuerOrganizationId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("รหัสอ้างอิงหน่วยงานที่ออกคำสั่ง");
|
||||
|
|
@ -155,6 +173,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("Member1FullName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรรมการคนที่ 1");
|
||||
|
||||
b.Property<string>("Member2FullName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรรมการคนที่ 2");
|
||||
|
||||
b.Property<DateTime?>("MilitaryCommanDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ลงวันที่ (ให้เข้ารับราชการทหาร)");
|
||||
|
|
@ -167,18 +193,54 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("char(36)")
|
||||
.HasComment("รหัสส่วนราชการผู้ออกคำสั่ง");
|
||||
|
||||
b.Property<DateTime?>("PlacementCommandDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("คำสั่งบรรจุลงวันที่");
|
||||
|
||||
b.Property<string>("PlacementCommandIssuer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ออกคำสั่งบรรจุ");
|
||||
|
||||
b.Property<string>("PlacementCommandNo")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เลขที่คำสั่งบรรจุ");
|
||||
|
||||
b.Property<Guid?>("PlacementId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("อ้างอิงรอบการสอบ");
|
||||
|
||||
b.Property<string>("PlacementOrganizationName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดที่บรรจุ");
|
||||
|
||||
b.Property<string>("PlacementPositionName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งที่บรรจุ");
|
||||
|
||||
b.Property<string>("PositionName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งที่บรรจุ");
|
||||
|
||||
b.Property<DateTime?>("ProbationEndDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่สิ้นสุดการทดลองปฏิบัติราชการ");
|
||||
|
||||
b.Property<DateTime?>("ProbationStartDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่เริ่มทดลองปฏิบัติราชการ");
|
||||
|
||||
b.Property<string>("ReceiveOrganizationName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ส่วนราชการที่รับโอน");
|
||||
|
||||
b.Property<string>("SourceOrganizationName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานต้นสังกัด ก่อนรับราชการทหาร");
|
||||
|
||||
b.Property<string>("TransferOrganizationName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ส่วนราชการที่ให้โอน");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CommandStatusId");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue