hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231124043728_change status field in AdditionalCheckInRequest Table.cs

42 lines
1.3 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class changestatusfieldinAdditionalCheckInRequestTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsApproved",
table: "AdditionalCheckRequests");
migrationBuilder.AddColumn<string>(
name: "Status",
table: "AdditionalCheckRequests",
type: "longtext",
nullable: false,
comment: "สถานะการอนุมัติ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Status",
table: "AdditionalCheckRequests");
migrationBuilder.AddColumn<bool>(
name: "IsApproved",
table: "AdditionalCheckRequests",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "สถานะการอนุมัติ");
}
}
}