add command placement

This commit is contained in:
kittapath 2025-01-24 17:14:39 +07:00
parent 752b1a5479
commit 3aa94c7b34
5 changed files with 19389 additions and 2 deletions

View file

@ -0,0 +1,96 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableplacementProfileaddcommand : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "commandId",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "refCommandCode",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "refCommandDate",
table: "PlacementProfiles",
type: "datetime(6)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ");
migrationBuilder.AddColumn<string>(
name: "refCommandName",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "refCommandNo",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "templateDoc",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
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");
}
}
}