using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class update_table_retirementresignemp_add_group : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ApproveStep", table: "RetirementResignEmployeeCancels", type: "longtext", nullable: true, comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "Group", table: "RetirementResignEmployeeCancels", type: "longtext", nullable: true, comment: "คนยื่นมาอยู่ในกลุ่ม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "Org", table: "RetirementResignEmployeeCancelApprovers", type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "RejectDate", table: "RetirementResignEmployeeCancelApprovers", type: "datetime(6)", nullable: true); migrationBuilder.AddColumn( name: "ApproveStep", table: "RetirementResignCancels", type: "longtext", nullable: true, comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "Group", table: "RetirementResignCancels", type: "longtext", nullable: true, comment: "คนยื่นมาอยู่ในกลุ่ม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "Org", table: "RetirementResignCancelApprovers", type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "RejectDate", table: "RetirementResignCancelApprovers", type: "datetime(6)", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ApproveStep", table: "RetirementResignEmployeeCancels"); migrationBuilder.DropColumn( name: "Group", table: "RetirementResignEmployeeCancels"); migrationBuilder.DropColumn( name: "Org", table: "RetirementResignEmployeeCancelApprovers"); migrationBuilder.DropColumn( name: "RejectDate", table: "RetirementResignEmployeeCancelApprovers"); migrationBuilder.DropColumn( name: "ApproveStep", table: "RetirementResignCancels"); migrationBuilder.DropColumn( name: "Group", table: "RetirementResignCancels"); migrationBuilder.DropColumn( name: "Org", table: "RetirementResignCancelApprovers"); migrationBuilder.DropColumn( name: "RejectDate", table: "RetirementResignCancelApprovers"); } } }