api จัดรอบการสอบ

This commit is contained in:
Kittapath 2023-03-25 01:09:03 +07:00
parent 44d18ff74c
commit bd0f02feb1
24 changed files with 8532 additions and 33 deletions

View file

@ -0,0 +1,100 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
/// <inheritdoc />
public partial class UpdatetableCandidateaddoccupationnationoffamily2 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "MarryOccupation",
table: "Candidates",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "อาชีพคู่สมรส",
oldClrType: typeof(string),
oldType: "varchar(100)",
oldMaxLength: 100,
oldNullable: true,
oldComment: "อาชีพคู่สมรส")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "FatherNationality",
table: "Candidates",
type: "varchar(100)",
maxLength: 100,
nullable: true,
comment: "สัญชาติบิดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "FatherOccupation",
table: "Candidates",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "อาชีพบิดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "MotherNationality",
table: "Candidates",
type: "varchar(100)",
maxLength: 100,
nullable: true,
comment: "สัญชาติมารดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "MotherOccupation",
table: "Candidates",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "อาชีพมารดา")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "FatherNationality",
table: "Candidates");
migrationBuilder.DropColumn(
name: "FatherOccupation",
table: "Candidates");
migrationBuilder.DropColumn(
name: "MotherNationality",
table: "Candidates");
migrationBuilder.DropColumn(
name: "MotherOccupation",
table: "Candidates");
migrationBuilder.AlterColumn<string>(
name: "MarryOccupation",
table: "Candidates",
type: "varchar(100)",
maxLength: 100,
nullable: true,
comment: "อาชีพคู่สมรส",
oldClrType: typeof(string),
oldType: "varchar(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "อาชีพคู่สมรส")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}