This commit is contained in:
Bright 2025-09-02 18:06:00 +07:00
parent f5f4115ef0
commit 8a3df45c03
5 changed files with 1831 additions and 21 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,50 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recruit.Service.Migrations
{
/// <inheritdoc />
public partial class update_field_RecruitScorebstatus : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "BStatus",
table: "RecruitScores",
type: "varchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "varchar(50)",
oldMaxLength: 50)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "RecruitScores",
keyColumn: "BStatus",
keyValue: null,
column: "BStatus",
value: "");
migrationBuilder.AlterColumn<string>(
name: "BStatus",
table: "RecruitScores",
type: "varchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "varchar(50)",
oldMaxLength: 50,
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

View file

@ -1162,7 +1162,6 @@ namespace BMA.EHR.Recruit.Service.Migrations
.HasComment("ภาคความรู้ความสามารถที่ใช้เฉพาะตำแหน่ง ผลประเมิน");
b.Property<string>("BStatus")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");