migrate (add fields & comment task #1786, #1787, #1788)

This commit is contained in:
Bright 2025-09-02 15:11:24 +07:00
parent a352ec6578
commit f5f4115ef0
7 changed files with 3720 additions and 31 deletions

View file

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recruit.Service.Migrations
{
/// <inheritdoc />
public partial class add_field_recruitsHddPosition : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "HddPosition",
table: "Recruits",
type: "longtext",
nullable: true,
comment: "บัญชีสอบ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "HddPosition",
table: "Recruits");
}
}
}