43 lines
1.5 KiB
C#
43 lines
1.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetableDisciplineDisciplinarysaddStatusDiscard : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "CommandTypeDiscardId",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
comment: "ประเภทออกคำสั่งงดโทด",
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StatusDiscard",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "สถานะออกคำสั่งงดโทด")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CommandTypeDiscardId",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StatusDiscard",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates");
|
|
}
|
|
}
|
|
}
|