using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
///
public partial class updatetableDisciplineDisciplinarysDisciplinaryDaysExtendnotnull : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "InvestigationExtendStatus",
table: "DisciplineInvestigates",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn(
name: "InvestigationExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn(
name: "DisciplinaryExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ขยายเวลา");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "InvestigationExtendStatus",
table: "DisciplineInvestigates",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn(
name: "InvestigationExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn(
name: "DisciplinaryExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "ขยายเวลา");
}
}
}