32 lines
950 B
C#
32 lines
950 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Recruit.Service.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddFieldNumbertoScore : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Number",
|
|
table: "RecruitScores",
|
|
type: "varchar(200)",
|
|
maxLength: 200,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "ลำดับที่สอบได้")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Number",
|
|
table: "RecruitScores");
|
|
}
|
|
}
|
|
}
|