เพิ่มฟิวคำสั่ง

This commit is contained in:
Kittapath 2024-05-09 12:53:07 +07:00
parent db712d586a
commit 083d48c24c
10 changed files with 17786 additions and 38 deletions

View file

@ -0,0 +1,88 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementReciveaddreportdate1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
// migrationBuilder.DropColumn(
// name: "PositionOld",
// table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "RecruitDate",
table: "PlacementAppointments");
// migrationBuilder.RenameColumn(
// name: "positionOld",
// table: "PlacementReceives",
// newName: "PositionOld");
migrationBuilder.RenameColumn(
name: "RecruitDate",
table: "PlacementReceives",
newName: "ReportingDate");
// migrationBuilder.AlterColumn<string>(
// name: "PositionOld",
// table: "PlacementReceives",
// type: "longtext",
// nullable: true,
// comment: "ตำแหน่งเดิม",
// oldClrType: typeof(string),
// oldType: "longtext",
// oldNullable: true,
// oldComment: "ชื่อตำแหน่งในสายงาน old")
// .Annotation("MySql:CharSet", "utf8mb4")
// .OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
// migrationBuilder.RenameColumn(
// name: "PositionOld",
// table: "PlacementReceives",
// newName: "positionOld");
migrationBuilder.RenameColumn(
name: "ReportingDate",
table: "PlacementReceives",
newName: "RecruitDate");
// migrationBuilder.AlterColumn<string>(
// name: "positionOld",
// table: "PlacementReceives",
// type: "longtext",
// nullable: true,
// comment: "ชื่อตำแหน่งในสายงาน old",
// oldClrType: typeof(string),
// oldType: "longtext",
// oldNullable: true,
// oldComment: "ตำแหน่งเดิม")
// .Annotation("MySql:CharSet", "utf8mb4")
// .OldAnnotation("MySql:CharSet", "utf8mb4");
// migrationBuilder.AddColumn<string>(
// name: "PositionOld",
// table: "PlacementReceives",
// type: "longtext",
// nullable: true,
// comment: "ตำแหน่งเดิม")
// .Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "RecruitDate",
table: "PlacementAppointments",
type: "datetime(6)",
nullable: true,
comment: "วันที่บรรจุ");
}
}
}

View file

@ -11167,10 +11167,6 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("เหตุผลที่รับย้ายราชการ");
b.Property<DateTime?>("RecruitDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่บรรจุ");
b.Property<DateTime?>("ReportingDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่รายงานตัว");
@ -12707,16 +12703,16 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("เหตุผลที่รับโอนราชการ");
b.Property<DateTime?>("RecruitDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่บรรจุ");
b.Property<Guid?>("RelationshipId")
.HasColumnType("char(36)");
b.Property<Guid?>("ReligionId")
.HasColumnType("char(36)");
b.Property<DateTime?>("ReportingDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่บรรจุ");
b.Property<string>("Status")
.IsRequired()
.HasColumnType("longtext")
@ -12899,10 +12895,6 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("id ตำแหน่ง");
b.Property<string>("positionOld")
.HasColumnType("longtext")
.HasComment("ชื่อตำแหน่งในสายงาน old");
b.Property<string>("posmasterId")
.HasColumnType("longtext")
.HasComment("id อัตรากำลัง");