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