51 lines
1.7 KiB
C#
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: "ประเภทช่วงเวลา");
|
|
}
|
|
}
|
|
}
|