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