hrms-api-backend/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20231128081711_update table DisciplineDisciplinarys add DisciplinaryDateResult.cs

97 lines
3.5 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinarysaddDisciplinaryDateResult : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "DutyTimeEffectiveDate",
table: "Profile",
type: "datetime(6)",
nullable: true,
comment: "วันที่รอบการลงเวลามีผล");
migrationBuilder.AddColumn<Guid>(
name: "DutyTimeId",
table: "Profile",
type: "char(36)",
nullable: true,
comment: "รอบการลงเวลาเข้างาน",
collation: "ascii_general_ci");
migrationBuilder.AddColumn<DateTime>(
name: "DisciplinaryDateEnd",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: true,
comment: "วันที่สิ้นสุดการสอบสวน");
migrationBuilder.AddColumn<DateTime>(
name: "DisciplinaryDateInvestigation",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: true,
comment: "วันที่มีคำสั่งให้สอบสวน");
migrationBuilder.AddColumn<DateTime>(
name: "DisciplinaryDateResult",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: true,
comment: "วันที่รายงานผลการสอบสวน");
migrationBuilder.AddColumn<DateTime>(
name: "DisciplinaryDateStart",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: true,
comment: "วันที่เริ่มการสอบสวน");
migrationBuilder.AddColumn<int>(
name: "DisciplinaryDaysExtend",
table: "DisciplineDisciplinarys",
type: "int",
nullable: true,
comment: "จำนวนวันที่ขยาย");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DutyTimeEffectiveDate",
table: "Profile");
migrationBuilder.DropColumn(
name: "DutyTimeId",
table: "Profile");
migrationBuilder.DropColumn(
name: "DisciplinaryDateEnd",
table: "DisciplineDisciplinarys");
migrationBuilder.DropColumn(
name: "DisciplinaryDateInvestigation",
table: "DisciplineDisciplinarys");
migrationBuilder.DropColumn(
name: "DisciplinaryDateResult",
table: "DisciplineDisciplinarys");
migrationBuilder.DropColumn(
name: "DisciplinaryDateStart",
table: "DisciplineDisciplinarys");
migrationBuilder.DropColumn(
name: "DisciplinaryDaysExtend",
table: "DisciplineDisciplinarys");
}
}
}