using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { /// public partial class changeLeaveCancelStatustoLeaveRequest : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsComplete", table: "LeaveRequests"); migrationBuilder.AddColumn( name: "LeaveCancelStatus", table: "LeaveRequests", type: "longtext", nullable: true, comment: "สถานะของคำขอยกเลิก") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "LeaveCancelStatus", table: "LeaveRequests"); migrationBuilder.AddColumn( name: "IsComplete", table: "LeaveRequests", type: "tinyint(1)", nullable: false, defaultValue: false, comment: "สถานะการทำงานของคำขอว่าสิ้นสุดการทำงานหรือไม่"); } } }