migrate db command add ComplaintId

This commit is contained in:
Kittapath 2024-01-15 11:50:37 +07:00
parent 640976c90d
commit 23aa59a416
3 changed files with 16992 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,31 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablecommandaddComplaintId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "ComplaintId",
table: "Commands",
type: "char(36)",
nullable: true,
comment: "Id เรื่องร้องเรียน",
collation: "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ComplaintId",
table: "Commands");
}
}
}

View file

@ -84,6 +84,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(4)")
.HasComment("ปีที่ออกคำสั่ง");
b.Property<Guid?>("ComplaintId")
.HasColumnType("char(36)")
.HasComment("Id เรื่องร้องเรียน");
b.Property<DateTime?>("ConclusionFireDate")
.HasColumnType("datetime(6)")
.HasComment("ลงวันที่ (เรื่องการดำเนินการทางวินัย)");