migrate db command add ComplaintId
This commit is contained in:
parent
640976c90d
commit
23aa59a416
3 changed files with 16992 additions and 0 deletions
16957
BMA.EHR.Infrastructure/Migrations/20240115044926_update table command add ComplaintId.Designer.cs
generated
Normal file
16957
BMA.EHR.Infrastructure/Migrations/20240115044926_update table command add ComplaintId.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -84,6 +84,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("varchar(4)")
|
.HasColumnType("varchar(4)")
|
||||||
.HasComment("ปีที่ออกคำสั่ง");
|
.HasComment("ปีที่ออกคำสั่ง");
|
||||||
|
|
||||||
|
b.Property<Guid?>("ComplaintId")
|
||||||
|
.HasColumnType("char(36)")
|
||||||
|
.HasComment("Id เรื่องร้องเรียน");
|
||||||
|
|
||||||
b.Property<DateTime?>("ConclusionFireDate")
|
b.Property<DateTime?>("ConclusionFireDate")
|
||||||
.HasColumnType("datetime(6)")
|
.HasColumnType("datetime(6)")
|
||||||
.HasComment("ลงวันที่ (เรื่องการดำเนินการทางวินัย)");
|
.HasComment("ลงวันที่ (เรื่องการดำเนินการทางวินัย)");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue