This commit is contained in:
parent
179d61cc16
commit
887d015276
22 changed files with 20618 additions and 444 deletions
20074
BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.Designer.cs
generated
Normal file
20074
BMA.EHR.Infrastructure/Migrations/20250405091100_update_table_placementRepatriation_add_refId1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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("ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue