using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb { /// public partial class updatetabledisciplinecomadddna : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "child1DnaId", table: "DisciplineReport_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child1") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child2DnaId", table: "DisciplineReport_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child2") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child3DnaId", table: "DisciplineReport_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child3") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child4DnaId", table: "DisciplineReport_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child4") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "rootDnaId", table: "DisciplineReport_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน root") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child1DnaId", table: "DisciplineInvestigate_ProfileComplaints", type: "longtext", nullable: true, comment: "id หน่วยงาน child1") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child2DnaId", table: "DisciplineInvestigate_ProfileComplaints", type: "longtext", nullable: true, comment: "id หน่วยงาน child2") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child3DnaId", table: "DisciplineInvestigate_ProfileComplaints", type: "longtext", nullable: true, comment: "id หน่วยงาน child3") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child4DnaId", table: "DisciplineInvestigate_ProfileComplaints", type: "longtext", nullable: true, comment: "id หน่วยงาน child4") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "rootDnaId", table: "DisciplineInvestigate_ProfileComplaints", type: "longtext", nullable: true, comment: "id หน่วยงาน root") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child1DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "id หน่วยงาน child1") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child2DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "id หน่วยงาน child2") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child3DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "id หน่วยงาน child3") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child4DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "id หน่วยงาน child4") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "rootDnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "id หน่วยงาน root") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child1DnaId", table: "DisciplineComplaint_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child1") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child2DnaId", table: "DisciplineComplaint_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child2") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child3DnaId", table: "DisciplineComplaint_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child3") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "child4DnaId", table: "DisciplineComplaint_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน child4") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "rootDnaId", table: "DisciplineComplaint_Profiles", type: "longtext", nullable: true, comment: "id หน่วยงาน root") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "child1DnaId", table: "DisciplineReport_Profiles"); migrationBuilder.DropColumn( name: "child2DnaId", table: "DisciplineReport_Profiles"); migrationBuilder.DropColumn( name: "child3DnaId", table: "DisciplineReport_Profiles"); migrationBuilder.DropColumn( name: "child4DnaId", table: "DisciplineReport_Profiles"); migrationBuilder.DropColumn( name: "rootDnaId", table: "DisciplineReport_Profiles"); migrationBuilder.DropColumn( name: "child1DnaId", table: "DisciplineInvestigate_ProfileComplaints"); migrationBuilder.DropColumn( name: "child2DnaId", table: "DisciplineInvestigate_ProfileComplaints"); migrationBuilder.DropColumn( name: "child3DnaId", table: "DisciplineInvestigate_ProfileComplaints"); migrationBuilder.DropColumn( name: "child4DnaId", table: "DisciplineInvestigate_ProfileComplaints"); migrationBuilder.DropColumn( name: "rootDnaId", table: "DisciplineInvestigate_ProfileComplaints"); migrationBuilder.DropColumn( name: "child1DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); migrationBuilder.DropColumn( name: "child2DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); migrationBuilder.DropColumn( name: "child3DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); migrationBuilder.DropColumn( name: "child4DnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); migrationBuilder.DropColumn( name: "rootDnaId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); migrationBuilder.DropColumn( name: "child1DnaId", table: "DisciplineComplaint_Profiles"); migrationBuilder.DropColumn( name: "child2DnaId", table: "DisciplineComplaint_Profiles"); migrationBuilder.DropColumn( name: "child3DnaId", table: "DisciplineComplaint_Profiles"); migrationBuilder.DropColumn( name: "child4DnaId", table: "DisciplineComplaint_Profiles"); migrationBuilder.DropColumn( name: "rootDnaId", table: "DisciplineComplaint_Profiles"); } } }