using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { /// public partial class AddFieldtoLeaveRequestDearPosoition : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Dear", table: "LeaveRequests", type: "longtext", nullable: true, comment: "เรียนใคร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "LeaveTypeCode", table: "LeaveRequests", type: "longtext", nullable: true, comment: "code ของประเภทการลา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "OrganizationName", table: "LeaveRequests", type: "longtext", nullable: true, comment: "สังกัดผู้ยื่นขอ") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionLevelName", table: "LeaveRequests", type: "longtext", nullable: true, comment: "ระดับผู้ยื่นขอ") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionName", table: "LeaveRequests", type: "longtext", nullable: true, comment: "ตำแหน่งผู้ยื่นขอ") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Dear", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "LeaveTypeCode", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "OrganizationName", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "PositionLevelName", table: "LeaveRequests"); migrationBuilder.DropColumn( name: "PositionName", table: "LeaveRequests"); } } }