hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20230927130546_update table PlacementRepatriations add DateRepatriation.cs
2023-09-27 20:36:13 +07:00

96 lines
5 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementRepatriationsaddDateRepatriation : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "DateRepatriation",
table: "PlacementRepatriations",
type: "datetime(6)",
nullable: true,
comment: "ส่งตัวกลับตั้งแต่วันที่");
migrationBuilder.AlterColumn<bool>(
name: "MarkRate",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: true,
comment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
migrationBuilder.AlterColumn<bool>(
name: "MarkLeave",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: true,
comment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน");
migrationBuilder.AlterColumn<bool>(
name: "MarkDiscipline",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: true,
comment: "แจ้งเตือน มีโทษทางวินัย",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "แจ้งเตือน มีโทษทางวินัย");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DateRepatriation",
table: "PlacementRepatriations");
migrationBuilder.AlterColumn<bool>(
name: "MarkRate",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
migrationBuilder.AlterColumn<bool>(
name: "MarkLeave",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน");
migrationBuilder.AlterColumn<bool>(
name: "MarkDiscipline",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "แจ้งเตือน มีโทษทางวินัย",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "แจ้งเตือน มีโทษทางวินัย");
}
}
}