hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240212102945_Add Fields IsDate to ProfileHonor Table.cs
Suphonchai Phoonsawat e45cf014b1 add field
2024-02-13 13:25:01 +07:00

51 lines
1.7 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldsIsDatetoProfileHonorTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "IsDate",
table: "ProfileTrainings",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ประเภทช่วงเวลาการศึกษา");
migrationBuilder.AddColumn<bool>(
name: "IsDate",
table: "ProfileHonors",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลา");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsDate",
table: "ProfileHonors");
migrationBuilder.AlterColumn<bool>(
name: "IsDate",
table: "ProfileTrainings",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ประเภทช่วงเวลา");
}
}
}