258 lines
9.8 KiB
C#
258 lines
9.8 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|