migrate model resign
This commit is contained in:
parent
088748ef20
commit
2fd30e815c
3 changed files with 16055 additions and 0 deletions
15944
BMA.EHR.Infrastructure/Migrations/20230829050555_update table resign add commander1.Designer.cs
generated
Normal file
15944
BMA.EHR.Infrastructure/Migrations/20230829050555_update table resign add commander1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,87 @@
|
||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace BMA.EHR.Infrastructure.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class updatetableresignaddcommander1 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "CommanderReject",
|
||||||
|
table: "RetirementResigns",
|
||||||
|
type: "tinyint(1)",
|
||||||
|
nullable: true,
|
||||||
|
comment: "สถานะยับยั้งผู้บังคับบัญชา");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>(
|
||||||
|
name: "CommanderRejectDate",
|
||||||
|
table: "RetirementResigns",
|
||||||
|
type: "datetime(6)",
|
||||||
|
nullable: true,
|
||||||
|
comment: "วันที่ยับยั้งผู้บังคับบัญชา");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "CommanderRejectReason",
|
||||||
|
table: "RetirementResigns",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "เหตุผลยับยั้งผู้บังคับบัญชา")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "OligarchReject",
|
||||||
|
table: "RetirementResigns",
|
||||||
|
type: "tinyint(1)",
|
||||||
|
nullable: true,
|
||||||
|
comment: "สถานะยับยั้งผู้ดูแล");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>(
|
||||||
|
name: "OligarchRejectDate",
|
||||||
|
table: "RetirementResigns",
|
||||||
|
type: "datetime(6)",
|
||||||
|
nullable: true,
|
||||||
|
comment: "วันที่ยับยั้งผู้ดูแล");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "OligarchRejectReason",
|
||||||
|
table: "RetirementResigns",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "เหตุผลยับยั้งผู้ดูแล")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CommanderReject",
|
||||||
|
table: "RetirementResigns");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CommanderRejectDate",
|
||||||
|
table: "RetirementResigns");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CommanderRejectReason",
|
||||||
|
table: "RetirementResigns");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "OligarchReject",
|
||||||
|
table: "RetirementResigns");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "OligarchRejectDate",
|
||||||
|
table: "RetirementResigns");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "OligarchRejectReason",
|
||||||
|
table: "RetirementResigns");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -13569,6 +13569,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
.HasComment("เหตุผลอนุมัติ");
|
.HasComment("เหตุผลอนุมัติ");
|
||||||
|
|
||||||
|
b.Property<bool?>("CommanderReject")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasComment("สถานะยับยั้งผู้บังคับบัญชา");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("CommanderRejectDate")
|
||||||
|
.HasColumnType("datetime(6)")
|
||||||
|
.HasComment("วันที่ยับยั้งผู้บังคับบัญชา");
|
||||||
|
|
||||||
|
b.Property<string>("CommanderRejectReason")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("เหตุผลยับยั้งผู้บังคับบัญชา");
|
||||||
|
|
||||||
b.Property<DateTime>("CreatedAt")
|
b.Property<DateTime>("CreatedAt")
|
||||||
.HasColumnType("datetime(6)")
|
.HasColumnType("datetime(6)")
|
||||||
.HasColumnOrder(100)
|
.HasColumnOrder(100)
|
||||||
|
|
@ -13615,6 +13627,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
.HasComment("สถานที่ยื่นขอลาออกราชการ");
|
.HasComment("สถานที่ยื่นขอลาออกราชการ");
|
||||||
|
|
||||||
|
b.Property<bool?>("OligarchReject")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasComment("สถานะยับยั้งผู้ดูแล");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("OligarchRejectDate")
|
||||||
|
.HasColumnType("datetime(6)")
|
||||||
|
.HasComment("วันที่ยับยั้งผู้ดูแล");
|
||||||
|
|
||||||
|
b.Property<string>("OligarchRejectReason")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("เหตุผลยับยั้งผู้ดูแล");
|
||||||
|
|
||||||
b.Property<string>("OrganizationPositionOld")
|
b.Property<string>("OrganizationPositionOld")
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
.HasComment("สังกัด");
|
.HasComment("สังกัด");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue