hrms-api-backend/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20231120044819_update table disciplinedirector add prefix.cs

31 lines
915 B
C#
Raw Normal View History

2023-11-23 08:48:21 +07:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetabledisciplinedirectoraddprefix : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "DisciplineDirectors",
type: "longtext",
nullable: false,
comment: "คำนำหน้าชื่อ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Prefix",
table: "DisciplineDirectors");
}
}
}