hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240425163413_update table command add salaryPeriod.cs

30 lines
886 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablecommandaddsalaryPeriod : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SalaryPeriod",
table: "Commands",
type: "longtext",
nullable: true,
comment: "รอบเงินเดือน")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SalaryPeriod",
table: "Commands");
}
}
}