using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
///
public partial class updatetableplacementProfileaddcommand : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "commandId",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "refCommandCode",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "refCommandDate",
table: "PlacementProfiles",
type: "datetime(6)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ");
migrationBuilder.AddColumn(
name: "refCommandName",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "refCommandNo",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "templateDoc",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "commandId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "refCommandCode",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "refCommandDate",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "refCommandName",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "refCommandNo",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "templateDoc",
table: "PlacementProfiles");
}
}
}