42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetableRetirementProfileaddisdiscripline : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDiscipline",
|
|
table: "RetirementResigns",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
comment: "สถานะพฤติการณ์ทางวินัย");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsNoBurden",
|
|
table: "RetirementResigns",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
comment: "สถานะไม่มีภาระผูกพันค้ำประกันทุนการศึกษา");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDiscipline",
|
|
table: "RetirementResigns");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsNoBurden",
|
|
table: "RetirementResigns");
|
|
}
|
|
}
|
|
}
|