hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240701171334_update table insignia add firstname.cs

319 lines
10 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableinsigniaaddfirstname : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "Amount",
table: "InsigniaRequestProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "BirthDate",
table: "InsigniaRequestProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CitizenId",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "DateAppoint",
table: "InsigniaRequestProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FirstName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Gender",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "LastName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosLevelName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosNo",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosTypeName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Position",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<double>(
name: "PositionSalaryAmount",
table: "InsigniaRequestProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "ProfileType",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<double>(
name: "Amount",
table: "InsigniaNoteProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "BirthDate",
table: "InsigniaNoteProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CitizenId",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "DateAppoint",
table: "InsigniaNoteProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FirstName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Gender",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "LastName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosLevelName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosNo",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosTypeName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Position",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<double>(
name: "PositionSalaryAmount",
table: "InsigniaNoteProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "ProfileType",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Amount",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "BirthDate",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "CitizenId",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "DateAppoint",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "FirstName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Gender",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "LastName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PosLevelName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PosNo",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PosTypeName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Position",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PositionSalaryAmount",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Prefix",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "ProfileType",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Amount",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "BirthDate",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "CitizenId",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "DateAppoint",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "FirstName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Gender",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "LastName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PosLevelName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PosNo",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PosTypeName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Position",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PositionSalaryAmount",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Prefix",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "ProfileType",
table: "InsigniaNoteProfiles");
}
}
}