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