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