fix migration

This commit is contained in:
Suphonchai Phoonsawat 2025-06-04 10:02:32 +07:00
parent 175232148b
commit 6ad83ecc53
3 changed files with 1576 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

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

View file

@ -811,6 +811,15 @@ namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property<double?>("Latitude")
.HasColumnType("double");
b.Property<double?>("Longitude")
.HasColumnType("double");
b.Property<string>("POI")
.HasColumnType("longtext");
b.Property<string>("Prefix")
.HasColumnType("longtext");