space posno
Some checks failed
release-dev / release-dev (push) Failing after 10s

This commit is contained in:
moss 2025-04-05 16:45:44 +07:00
parent 179d61cc16
commit 887d015276
22 changed files with 20618 additions and 444 deletions

View file

@ -0,0 +1,82 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class update_table_placementRepatriation_add_refId1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "PositionName",
table: "RetirementDeceasedNotis",
type: "longtext",
nullable: true,
comment: "ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง",
oldClrType: typeof(string),
oldType: "longtext",
oldComment: "ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "OrganizationName",
table: "RetirementDeceasedNotis",
type: "longtext",
nullable: true,
comment: "ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง",
oldClrType: typeof(string),
oldType: "longtext",
oldComment: "ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "RetirementDeceasedNotis",
keyColumn: "PositionName",
keyValue: null,
column: "PositionName",
value: "");
migrationBuilder.AlterColumn<string>(
name: "PositionName",
table: "RetirementDeceasedNotis",
type: "longtext",
nullable: false,
comment: "ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "RetirementDeceasedNotis",
keyColumn: "OrganizationName",
keyValue: null,
column: "OrganizationName",
value: "");
migrationBuilder.AlterColumn<string>(
name: "OrganizationName",
table: "RetirementDeceasedNotis",
type: "longtext",
nullable: false,
comment: "ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

View file

@ -14839,12 +14839,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property<string>("OrganizationName")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง");
b.Property<string>("PositionName")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง");