using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class addPositionExecutiveOld : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "RetirementOuts", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "RetirementOthers", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "RetirementDeceaseds", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "PlacementTransfers", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "PlacementRepatriations", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "PlacementReceives", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "PlacementOfficers", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutive", table: "PlacementAppointments", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "PositionExecutiveOld", table: "PlacementAppointments", type: "longtext", nullable: true, comment: "ตำแหน่งทางการบริหารเดิม") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "RetirementOuts"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "RetirementOthers"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "RetirementDeceaseds"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "PlacementTransfers"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "PlacementRepatriations"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "PlacementReceives"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "PlacementOfficers"); migrationBuilder.DropColumn( name: "PositionExecutive", table: "PlacementAppointments"); migrationBuilder.DropColumn( name: "PositionExecutiveOld", table: "PlacementAppointments"); } } }