issue #1580
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m45s

This commit is contained in:
Suphonchai Phoonsawat 2026-05-11 15:12:09 +07:00
parent f02413f2b2
commit 80fcda61cf
7 changed files with 1884 additions and 2 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddApproverField : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsAct",
table: "LeaveRequestApprovers",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "KeyId",
table: "LeaveRequestApprovers",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsAct",
table: "LeaveRequestApprovers");
migrationBuilder.DropColumn(
name: "KeyId",
table: "LeaveRequestApprovers");
}
}
}

View file

@ -713,6 +713,13 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("IsAct")
.HasColumnType("tinyint(1)");
b.Property<string>("KeyId")
.IsRequired()
.HasColumnType("longtext");
b.Property<Guid>("KeycloakId")
.HasColumnType("char(36)");