using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
    /// <inheritdoc />
    public partial class UpdatetableCandidateaddExamIdenNumber : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "ExamIdenNumber",
                table: "Candidates",
                type: "longtext",
                nullable: true,
                comment: "เลขประจำตัวสอบ")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<string>(
                name: "Point",
                table: "Candidates",
                type: "longtext",
                nullable: true,
                comment: "คะแนน")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ExamIdenNumber",
                table: "Candidates");

            migrationBuilder.DropColumn(
                name: "Point",
                table: "Candidates");
        }
    }
}
