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