hrms-api-backend/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20231215020347_update table DisciplineComplaint_Appeals add position.cs
2023-12-19 08:33:09 +07:00

42 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineComplaint_Appealsaddposition : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Oc",
table: "DisciplineComplaint_Appeals",
type: "longtext",
nullable: true,
comment: "สังกัดผู้อุทธรณ์/ร้องทุกข์")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Position",
table: "DisciplineComplaint_Appeals",
type: "longtext",
nullable: true,
comment: "ตำแหน่งผู้อุทธรณ์/ร้องทุกข์")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Oc",
table: "DisciplineComplaint_Appeals");
migrationBuilder.DropColumn(
name: "Position",
table: "DisciplineComplaint_Appeals");
}
}
}