add dna
This commit is contained in:
parent
dbe6916782
commit
5ea175ca77
61 changed files with 66329 additions and 129 deletions
3459
BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.Designer.cs
generated
Normal file
3459
BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250205104627_update table disciplinecom add dna.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,258 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetabledisciplinecomadddna : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1DnaId",
|
||||
table: "DisciplineReport_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2DnaId",
|
||||
table: "DisciplineReport_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3DnaId",
|
||||
table: "DisciplineReport_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4DnaId",
|
||||
table: "DisciplineReport_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootDnaId",
|
||||
table: "DisciplineReport_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน root")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1DnaId",
|
||||
table: "DisciplineInvestigate_ProfileComplaints",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2DnaId",
|
||||
table: "DisciplineInvestigate_ProfileComplaints",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3DnaId",
|
||||
table: "DisciplineInvestigate_ProfileComplaints",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4DnaId",
|
||||
table: "DisciplineInvestigate_ProfileComplaints",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootDnaId",
|
||||
table: "DisciplineInvestigate_ProfileComplaints",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน root")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1DnaId",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2DnaId",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3DnaId",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4DnaId",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootDnaId",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน root")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1DnaId",
|
||||
table: "DisciplineComplaint_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2DnaId",
|
||||
table: "DisciplineComplaint_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3DnaId",
|
||||
table: "DisciplineComplaint_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4DnaId",
|
||||
table: "DisciplineComplaint_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootDnaId",
|
||||
table: "DisciplineComplaint_Profiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน root")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -592,6 +592,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
|
@ -604,6 +608,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
|
@ -616,6 +624,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
|
@ -628,6 +640,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
|
@ -664,6 +680,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootDnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
|
@ -1859,6 +1879,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
|
@ -1871,6 +1895,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
|
@ -1883,6 +1911,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
|
@ -1895,6 +1927,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
|
@ -1931,6 +1967,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootDnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
|
@ -2554,6 +2594,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
|
@ -2566,6 +2610,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
|
@ -2578,6 +2626,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
|
@ -2590,6 +2642,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
|
@ -2626,6 +2682,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootDnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
|
@ -2780,6 +2840,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
|
@ -2792,6 +2856,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
|
@ -2804,6 +2872,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
|
@ -2816,6 +2888,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
|
@ -2852,6 +2928,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootDnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue