using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
///
public partial class updatetablecandidateaddpointBC : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Point",
table: "Candidates");
migrationBuilder.AlterColumn(
name: "Pass",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "ผลสมัครสอบ",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ผลสมัครสอบ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "PointB",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "คะแนนภาค ข")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "PointC",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "คะแนนภาค ค")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "PointTotalB",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "คะแนนเต็มภาค ข")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "PointTotalC",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "คะแนนเต็มภาค ค")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "ResultB",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "ผลสอบภาค ข")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "ResultC",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "ผลสอบภาค ค")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PointB",
table: "Candidates");
migrationBuilder.DropColumn(
name: "PointC",
table: "Candidates");
migrationBuilder.DropColumn(
name: "PointTotalB",
table: "Candidates");
migrationBuilder.DropColumn(
name: "PointTotalC",
table: "Candidates");
migrationBuilder.DropColumn(
name: "ResultB",
table: "Candidates");
migrationBuilder.DropColumn(
name: "ResultC",
table: "Candidates");
migrationBuilder.AlterColumn(
name: "Pass",
table: "Candidates",
type: "tinyint(1)",
nullable: true,
comment: "ผลสมัครสอบ",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "ผลสมัครสอบ")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "Point",
table: "Candidates",
type: "longtext",
nullable: true,
comment: "คะแนน")
.Annotation("MySql:CharSet", "utf8mb4");
}
}
}