fix migration
This commit is contained in:
parent
175232148b
commit
6ad83ecc53
3 changed files with 1576 additions and 0 deletions
1518
BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.Designer.cs
generated
Normal file
1518
BMA.EHR.Infrastructure/Migrations/LeaveDb/20250604025614_Fix Missing.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue