using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class AddFieldPlacementandRetire : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "positionArea", table: "RetirementResigns", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementResigns", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementResigns", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementResigns", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "RetirementResignCancels", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementResignCancels", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementResignCancels", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementResignCancels", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "RetirementRawProfiles", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementRawProfiles", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementRawProfiles", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementRawProfiles", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "RetirementProfiles", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementProfiles", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementProfiles", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementProfiles", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "RetirementOuts", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementOuts", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementOuts", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementOuts", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "RetirementOthers", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementOthers", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementOthers", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementOthers", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "RetirementDeceaseds", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "RetirementDeceaseds", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "RetirementDeceaseds", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "RetirementDeceaseds", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "PlacementTransfers", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "PlacementTransfers", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "PlacementTransfers", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "PlacementTransfers", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "PlacementRepatriations", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "PlacementRepatriations", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "PlacementRepatriations", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "PlacementRepatriations", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "PlacementReceives", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "PlacementReceives", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "PlacementReceives", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "PlacementReceives", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "PlacementOfficers", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "PlacementOfficers", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "PlacementOfficers", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "PlacementOfficers", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionArea", table: "PlacementAppointments", type: "longtext", nullable: true, comment: "ด้าน/สาขา") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionAreaOld", table: "PlacementAppointments", type: "longtext", nullable: true, comment: "ด้าน/สาขา (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveField", table: "PlacementAppointments", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "positionExecutiveFieldOld", table: "PlacementAppointments", type: "longtext", nullable: true, comment: "ด้านทางการบริหาร (เก่า)") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "positionArea", table: "RetirementResigns"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementResigns"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementResigns"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementResigns"); migrationBuilder.DropColumn( name: "positionArea", table: "RetirementResignCancels"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementResignCancels"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementResignCancels"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementResignCancels"); migrationBuilder.DropColumn( name: "positionArea", table: "RetirementRawProfiles"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementRawProfiles"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementRawProfiles"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementRawProfiles"); migrationBuilder.DropColumn( name: "positionArea", table: "RetirementProfiles"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementProfiles"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementProfiles"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementProfiles"); migrationBuilder.DropColumn( name: "positionArea", table: "RetirementOuts"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementOuts"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementOuts"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementOuts"); migrationBuilder.DropColumn( name: "positionArea", table: "RetirementOthers"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementOthers"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementOthers"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementOthers"); migrationBuilder.DropColumn( name: "positionArea", table: "RetirementDeceaseds"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "RetirementDeceaseds"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "RetirementDeceaseds"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "RetirementDeceaseds"); migrationBuilder.DropColumn( name: "positionArea", table: "PlacementTransfers"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "PlacementTransfers"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "PlacementTransfers"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "PlacementTransfers"); migrationBuilder.DropColumn( name: "positionArea", table: "PlacementRepatriations"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "PlacementRepatriations"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "PlacementRepatriations"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "PlacementRepatriations"); migrationBuilder.DropColumn( name: "positionArea", table: "PlacementReceives"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "PlacementReceives"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "PlacementReceives"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "PlacementReceives"); migrationBuilder.DropColumn( name: "positionArea", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "positionArea", table: "PlacementOfficers"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "PlacementOfficers"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "PlacementOfficers"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "PlacementOfficers"); migrationBuilder.DropColumn( name: "positionArea", table: "PlacementAppointments"); migrationBuilder.DropColumn( name: "positionAreaOld", table: "PlacementAppointments"); migrationBuilder.DropColumn( name: "positionExecutiveField", table: "PlacementAppointments"); migrationBuilder.DropColumn( name: "positionExecutiveFieldOld", table: "PlacementAppointments"); } } }