hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20230720073612_Add AuthorizedPosition to Command Table.cs
2023-07-20 14:53:09 +07:00

30 lines
931 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddAuthorizedPositiontoCommandTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "AuthorizedPosition",
table: "Commands",
type: "longtext",
nullable: false,
comment: "ตำแหน่งผู้มีอำนาจลงนาม")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AuthorizedPosition",
table: "Commands");
}
}
}