hrms-api-backend/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20240125110132_update table DisciplineDisciplinary_ProfileComplaintInvestigates add IsAncestorDNA.cs

51 lines
1.8 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinary_ProfileComplaintInvestigatesaddIsAncestorDNA : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsAncestorDNA",
table: "DisciplineInvestigate_ProfileComplaints",
type: "tinyint(1)",
nullable: true,
comment: "รายการเก่า");
migrationBuilder.AddColumn<bool>(
name: "IsAncestorDNA",
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
type: "tinyint(1)",
nullable: true,
comment: "รายการเก่า");
migrationBuilder.AddColumn<bool>(
name: "IsAncestorDNA",
table: "DisciplineComplaint_Profiles",
type: "tinyint(1)",
nullable: true,
comment: "รายการเก่า");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsAncestorDNA",
table: "DisciplineInvestigate_ProfileComplaints");
migrationBuilder.DropColumn(
name: "IsAncestorDNA",
table: "DisciplineDisciplinary_ProfileComplaintInvestigates");
migrationBuilder.DropColumn(
name: "IsAncestorDNA",
table: "DisciplineComplaint_Profiles");
}
}
}