fix Issue : 723

This commit is contained in:
Suphonchai Phoonsawat 2024-11-11 20:46:45 +07:00
parent 4970659f0a
commit ddb541c819
7 changed files with 1362 additions and 3 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,73 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class addrootinfo : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Child1",
table: "LeaveRequests",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Child2",
table: "LeaveRequests",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Child3",
table: "LeaveRequests",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Child4",
table: "LeaveRequests",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Root",
table: "LeaveRequests",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Child1",
table: "LeaveRequests");
migrationBuilder.DropColumn(
name: "Child2",
table: "LeaveRequests");
migrationBuilder.DropColumn(
name: "Child3",
table: "LeaveRequests");
migrationBuilder.DropColumn(
name: "Child4",
table: "LeaveRequests");
migrationBuilder.DropColumn(
name: "Root",
table: "LeaveRequests");
}
}
}

View file

@ -217,6 +217,18 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
.HasColumnType("longtext")
.HasComment("เขียนที่ (ขอยกเลิก)");
b.Property<string>("Child1")
.HasColumnType("longtext");
b.Property<string>("Child2")
.HasColumnType("longtext");
b.Property<string>("Child3")
.HasColumnType("longtext");
b.Property<string>("Child4")
.HasColumnType("longtext");
b.Property<string>("CitizenId")
.HasColumnType("longtext");
@ -437,6 +449,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
b.Property<double>("RestDayOldTotal")
.HasColumnType("double");
b.Property<string>("Root")
.HasColumnType("longtext");
b.Property<string>("StudyDayCountry")
.IsRequired()
.HasColumnType("longtext");