Add Migration

This commit is contained in:
Suphonchai Phoonsawat 2025-04-09 16:05:07 +07:00
parent 6fd3fff0c8
commit 50f3d22090
14 changed files with 2846 additions and 9 deletions

File diff suppressed because it is too large Load diff

View file

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

File diff suppressed because it is too large Load diff

View file

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

View file

@ -320,6 +320,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
b.Property<string>("CitizenId")
.HasColumnType("longtext");
b.Property<string>("CommanderPosition")
.HasColumnType("longtext");
b.Property<string>("CoupleDayCountryHistory")
.HasColumnType("longtext");
@ -481,6 +484,9 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
.HasColumnType("longtext")
.HasComment("สถานะของคำร้อง");
b.Property<string>("LeaveSubTypeName")
.HasColumnType("longtext");
b.Property<double>("LeaveTotal")
.HasColumnType("double");