โอนคนสรรหาไปบรรจุ

This commit is contained in:
Kittapath 2023-07-26 18:45:04 +07:00
parent 40836767ad
commit e55c0f746b
10 changed files with 35615 additions and 17 deletions

View file

@ -0,0 +1,84 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updateTableplacementExamNumbernullable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "ExamRound",
table: "PlacementProfiles",
type: "int",
nullable: true,
comment: "จำนวนครั้งที่สมัครสอบ",
oldClrType: typeof(int),
oldType: "int",
oldComment: "จำนวนครั้งที่สมัครสอบ");
migrationBuilder.AlterColumn<int>(
name: "ExamNumber",
table: "PlacementProfiles",
type: "int",
nullable: true,
comment: "ลำดับที่สอบได้",
oldClrType: typeof(int),
oldType: "int",
oldComment: "ลำดับที่สอบได้");
migrationBuilder.AlterColumn<int>(
name: "DurationYear",
table: "PlacementEducations",
type: "int",
nullable: true,
comment: "ระยะเวลาหลักสูตร",
oldClrType: typeof(int),
oldType: "int",
oldComment: "ระยะเวลาหลักสูตร");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "ExamRound",
table: "PlacementProfiles",
type: "int",
nullable: false,
defaultValue: 0,
comment: "จำนวนครั้งที่สมัครสอบ",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "จำนวนครั้งที่สมัครสอบ");
migrationBuilder.AlterColumn<int>(
name: "ExamNumber",
table: "PlacementProfiles",
type: "int",
nullable: false,
defaultValue: 0,
comment: "ลำดับที่สอบได้",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "ลำดับที่สอบได้");
migrationBuilder.AlterColumn<int>(
name: "DurationYear",
table: "PlacementEducations",
type: "int",
nullable: false,
defaultValue: 0,
comment: "ระยะเวลาหลักสูตร",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "ระยะเวลาหลักสูตร");
}
}
}

View file

@ -0,0 +1,78 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updateTableplacementprofilemobolelimit200 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Telephone",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์",
oldClrType: typeof(string),
oldType: "varchar(20)",
oldMaxLength: 20,
oldNullable: true,
oldComment: "โทรศัพท์")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "MobilePhone",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์มือถือ",
oldClrType: typeof(string),
oldType: "varchar(20)",
oldMaxLength: 20,
oldNullable: true,
oldComment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Telephone",
table: "PlacementProfiles",
type: "varchar(20)",
maxLength: 20,
nullable: true,
comment: "โทรศัพท์",
oldClrType: typeof(string),
oldType: "varchar(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "โทรศัพท์")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "MobilePhone",
table: "PlacementProfiles",
type: "varchar(20)",
maxLength: 20,
nullable: true,
comment: "โทรศัพท์มือถือ",
oldClrType: typeof(string),
oldType: "varchar(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "โทรศัพท์มือถือ")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

View file

@ -0,0 +1,48 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updateTableplacementprofilemobilelimit200 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "OccupationTelephone",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "โทรศัพท์ บริษัท",
oldClrType: typeof(string),
oldType: "varchar(20)",
oldMaxLength: 20,
oldNullable: true,
oldComment: "โทรศัพท์ บริษัท")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "OccupationTelephone",
table: "PlacementProfiles",
type: "varchar(20)",
maxLength: 20,
nullable: true,
comment: "โทรศัพท์ บริษัท",
oldClrType: typeof(string),
oldType: "varchar(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "โทรศัพท์ บริษัท")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}

View file

@ -9621,7 +9621,7 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(1000)")
.HasComment("ระยะเวลา");
b.Property<int>("DurationYear")
b.Property<int?>("DurationYear")
.HasColumnType("int")
.HasComment("ระยะเวลาหลักสูตร");
@ -9852,11 +9852,11 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(200)")
.HasComment("อีเมล");
b.Property<int>("ExamNumber")
b.Property<int?>("ExamNumber")
.HasColumnType("int")
.HasComment("ลำดับที่สอบได้");
b.Property<int>("ExamRound")
b.Property<int?>("ExamRound")
.HasColumnType("int")
.HasComment("จำนวนครั้งที่สมัครสอบ");
@ -9957,8 +9957,8 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("char(36)");
b.Property<string>("MobilePhone")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("โทรศัพท์มือถือ");
b.Property<string>("MotherFirstName")
@ -10011,8 +10011,8 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasComment("ตำแหน่งอาชีพ");
b.Property<string>("OccupationTelephone")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("โทรศัพท์ บริษัท");
b.Property<string>("OccupationType")
@ -10147,8 +10147,8 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasComment("เอกสารอ้างอิง");
b.Property<string>("Telephone")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("โทรศัพท์");
b.HasKey("Id");