แก้ บรรจุกับโครงสร้างใหม่

This commit is contained in:
Kittapath 2024-02-20 15:17:05 +07:00
parent eea8e1ff81
commit 06af1fc632
8 changed files with 34469 additions and 53 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,67 @@
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");
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,42 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableplacementaddnode1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "node",
table: "PlacementProfiles",
type: "int",
nullable: true,
comment: "ระดับโครงสร้าง",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "ระดับโครงสร้าง")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "node",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ระดับโครงสร้าง",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "ระดับโครงสร้าง")
.Annotation("MySql:CharSet", "utf8mb4");
}
}
}

View file

@ -12096,6 +12096,22 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(200)")
.HasComment("โทรศัพท์");
b.Property<int?>("node")
.HasColumnType("int")
.HasComment("ระดับโครงสร้าง");
b.Property<Guid?>("nodeId")
.HasColumnType("char(36)")
.HasComment("id โครงสร้าง");
b.Property<Guid?>("positionId")
.HasColumnType("char(36)")
.HasComment("id ตำแหน่ง");
b.Property<Guid?>("posmasterId")
.HasColumnType("char(36)")
.HasComment("id อัตรากำลัง");
b.HasKey("Id");
b.HasIndex("BloodGroupId");