40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetableDisciplineInvestigateExtendsaddDaysExtend : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "DaysExtend",
|
|
table: "DisciplineInvestigateExtends",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "จำนวนวันที่การขยาย");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "DaysExtend",
|
|
table: "DisciplineDisciplinaryExtends",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "จำนวนวันที่การขยาย");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DaysExtend",
|
|
table: "DisciplineInvestigateExtends");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DaysExtend",
|
|
table: "DisciplineDisciplinaryExtends");
|
|
}
|
|
}
|
|
}
|