hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240115044926_update table command add ComplaintId.cs
2024-01-15 11:50:37 +07:00

31 lines
898 B
C#

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");
}
}
}