using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
///
public partial class UpdatetableCandidateaddoccupationnationoffamily2 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
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(
name: "FatherNationality",
table: "Candidates",
type: "varchar(100)",
maxLength: 100,
nullable: true,
comment: "สัญชาติบิดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "FatherOccupation",
table: "Candidates",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "อาชีพบิดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "MotherNationality",
table: "Candidates",
type: "varchar(100)",
maxLength: 100,
nullable: true,
comment: "สัญชาติมารดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "MotherOccupation",
table: "Candidates",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "อาชีพมารดา")
.Annotation("MySql:CharSet", "utf8mb4");
}
///
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(
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");
}
}
}