no message

This commit is contained in:
Kittapath 2024-05-01 09:49:36 +07:00
parent dc91f81262
commit 57164f5d45
11 changed files with 34879 additions and 185 deletions

View file

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementProfilesaddtypeCommand : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "typeCommand",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ประเภทคำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "typeCommand",
table: "PlacementProfiles");
}
}
}

View file

@ -0,0 +1,45 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementProfilesaddtypeCommand1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "posmasterId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "id อัตรากำลัง",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true,
oldComment: "id อัตรากำลัง")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "posmasterId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
comment: "id อัตรากำลัง",
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "id อัตรากำลัง")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

View file

@ -12233,8 +12233,8 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ชื่อตำแหน่งในสายงาน");
b.Property<Guid?>("posmasterId")
.HasColumnType("char(36)")
b.Property<string>("posmasterId")
.HasColumnType("longtext")
.HasComment("id อัตรากำลัง");
b.Property<string>("root")
@ -12249,6 +12249,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ชื่อย่อหน่วยงาน root");
b.Property<string>("typeCommand")
.HasColumnType("longtext")
.HasComment("ประเภทคำสั่ง");
b.HasKey("Id");
b.HasIndex("BloodGroupId");