hrms-api-backend/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20231201023452_update table DisciplineDisciplinarys DisciplinaryDaysExtend not null.cs

84 lines
3.1 KiB
C#

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