using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
///
public partial class updateCommandaddFaultLevel : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "CaseFault",
table: "Commands",
type: "longtext",
nullable: true,
comment: "กรณีความผิด")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "FaultLevel",
table: "Commands",
type: "longtext",
nullable: true,
comment: "ระดับความผิด")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "RefRaw",
table: "Commands",
type: "longtext",
nullable: true,
comment: "อ้างอิงมาตราตามกฏหมาย")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "Result",
table: "Commands",
type: "longtext",
nullable: true,
comment: "ผลดำเนินการพิจารณา")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CaseFault",
table: "Commands");
migrationBuilder.DropColumn(
name: "FaultLevel",
table: "Commands");
migrationBuilder.DropColumn(
name: "RefRaw",
table: "Commands");
migrationBuilder.DropColumn(
name: "Result",
table: "Commands");
}
}
}