hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20231222071428_update Command add FaultLevel.cs

66 lines
2.1 KiB
C#

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