Migrate เพิ่มฟิลด์สถานะคัดกรองคุณสมบัติ
This commit is contained in:
parent
46481ef1ec
commit
2deb2927a6
5 changed files with 1671 additions and 10 deletions
1607
Migrations/20260310063204_update_table_RecruitScore_add_field_ExamAttribute.Designer.cs
generated
Normal file
1607
Migrations/20260310063204_update_table_RecruitScore_add_field_ExamAttribute.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,32 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class update_table_RecruitScore_add_field_ExamAttribute : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ExamAttribute",
|
||||
table: "RecruitScores",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "สถานะคัดกรองคุณสมบัติ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExamAttribute",
|
||||
table: "RecruitScores");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1200,6 +1200,12 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("ExamAttribute")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("สถานะคัดกรองคุณสมบัติ");
|
||||
|
||||
b.Property<string>("ExamId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue