67 lines
2.1 KiB
C#
67 lines
2.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetableplacementaddnode : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "node",
|
|
table: "PlacementProfiles",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ระดับโครงสร้าง")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "nodeId",
|
|
table: "PlacementProfiles",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
comment: "id โครงสร้าง",
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "positionId",
|
|
table: "PlacementProfiles",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
comment: "id ตำแหน่ง",
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "posmasterId",
|
|
table: "PlacementProfiles",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
comment: "id อัตรากำลัง",
|
|
collation: "ascii_general_ci");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "node",
|
|
table: "PlacementProfiles");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "nodeId",
|
|
table: "PlacementProfiles");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "positionId",
|
|
table: "PlacementProfiles");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "posmasterId",
|
|
table: "PlacementProfiles");
|
|
}
|
|
}
|
|
}
|