add child in insignia profile

This commit is contained in:
kittapath 2024-12-10 22:42:16 +07:00
parent 5e891b96b7
commit 2510009cc6
6 changed files with 19511 additions and 0 deletions

View file

@ -0,0 +1,195 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableinsigniaprofileaddchild : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Child1",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child1Id",
table: "InsigniaRequestProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child2",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child2Id",
table: "InsigniaRequestProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child3",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child3Id",
table: "InsigniaRequestProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child4",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child4Id",
table: "InsigniaRequestProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child1",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child1Id",
table: "InsigniaNoteProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child2",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child2Id",
table: "InsigniaNoteProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child3",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child3Id",
table: "InsigniaNoteProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "Child4",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "Child4Id",
table: "InsigniaNoteProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Child1",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child1Id",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child2",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child2Id",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child3",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child3Id",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child4",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child4Id",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Child1",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child1Id",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child2",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child2Id",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child3",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child3Id",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child4",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Child4Id",
table: "InsigniaNoteProfiles");
}
}
}