เพิ่มฟิวคำสั่ง
This commit is contained in:
parent
db712d586a
commit
083d48c24c
10 changed files with 17786 additions and 38 deletions
|
|
@ -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: "วันที่บรรจุ");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue