migrate + api บันทึกผู้ตรวจสอบและส่งไปพิจาณา #2109
Some checks failed
release-dev / release-dev (push) Failing after 12s

This commit is contained in:
harid 2025-12-11 21:27:18 +07:00
parent 59fd20c879
commit 0a58075428
8 changed files with 1722 additions and 4 deletions

View file

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class update_LeaveRequestApprover_add_PositionSign : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "PositionSign",
table: "LeaveRequestApprovers",
type: "longtext",
nullable: true,
comment: "ตำแหน่งใต้ลายเช็นต์")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PositionSign",
table: "LeaveRequestApprovers");
}
}
}

View file

@ -731,6 +731,10 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("PositionSign")
.HasColumnType("longtext")
.HasComment("ตำแหน่งใต้ลายเช็นต์");
b.Property<string>("Prefix")
.IsRequired()
.HasColumnType("longtext");