using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class updatetableresignaddcommander2 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "CommanderApproveReason", table: "RetirementResigns", type: "longtext", nullable: true, comment: "เหตุผลอนุมัติผู้บังคับบัญชา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "OligarchApproveReason", table: "RetirementResigns", type: "longtext", nullable: true, comment: "เหตุผลอนุมัติผู้ดูแล") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "CommanderApproveReason", table: "RetirementResigns"); migrationBuilder.DropColumn( name: "OligarchApproveReason", table: "RetirementResigns"); } } }