using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb { /// public partial class addtableDisciplineDisciplinary_DocWitnessess : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "InvestigationDateStart", table: "DisciplineInvestigates", type: "datetime(6)", nullable: true, comment: "วันที่เริ่มการสืบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่เริ่มการสอบสวน"); migrationBuilder.AlterColumn( name: "InvestigationDateEnd", table: "DisciplineInvestigates", type: "datetime(6)", nullable: true, comment: "วันที่สิ้นสุดการสืบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่สิ้นสุดการสอบสวน"); migrationBuilder.AlterColumn( name: "InvestigationDateStart", table: "DisciplineDisciplinarys", type: "datetime(6)", nullable: true, comment: "วันที่เริ่มการสืบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่เริ่มการสอบสวน"); migrationBuilder.AlterColumn( name: "InvestigationDateEnd", table: "DisciplineDisciplinarys", type: "datetime(6)", nullable: true, comment: "วันที่สิ้นสุดการสืบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่สิ้นสุดการสอบสวน"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "InvestigationDateStart", table: "DisciplineInvestigates", type: "datetime(6)", nullable: true, comment: "วันที่เริ่มการสอบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่เริ่มการสืบสวน"); migrationBuilder.AlterColumn( name: "InvestigationDateEnd", table: "DisciplineInvestigates", type: "datetime(6)", nullable: true, comment: "วันที่สิ้นสุดการสอบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่สิ้นสุดการสืบสวน"); migrationBuilder.AlterColumn( name: "InvestigationDateStart", table: "DisciplineDisciplinarys", type: "datetime(6)", nullable: true, comment: "วันที่เริ่มการสอบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่เริ่มการสืบสวน"); migrationBuilder.AlterColumn( name: "InvestigationDateEnd", table: "DisciplineDisciplinarys", type: "datetime(6)", nullable: true, comment: "วันที่สิ้นสุดการสอบสวน", oldClrType: typeof(DateTime), oldType: "datetime(6)", oldNullable: true, oldComment: "วันที่สิ้นสุดการสืบสวน"); } } }