using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
///
public partial class updatetablePlacementProfileaddOccupationorg : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "OccupationCompany",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationDepartment",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationEmail",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationType",
table: "PlacementProfiles");
migrationBuilder.AlterColumn(
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");
migrationBuilder.AlterColumn(
name: "OccupationPosition",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ตำแหน่งปัจจุบัน สังกัด",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "ตำแหน่งอาชีพ")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationGroup",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationOrg",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ตำแหน่งปัจจุบัน ชื่อตำแหน่ง")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationPile",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ตำแหน่งปัจจุบัน กอง")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationPositionType",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ตำแหน่งปัจจุบัน ประเภทราชการ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationSalary",
table: "PlacementProfiles",
type: "int",
nullable: true,
comment: "ตำแหน่งปัจจุบัน เงินเดือน");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "OccupationGroup",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationOrg",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationPile",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationPositionType",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "OccupationSalary",
table: "PlacementProfiles");
migrationBuilder.AlterColumn(
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");
migrationBuilder.AlterColumn(
name: "OccupationPosition",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ตำแหน่งอาชีพ",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "ตำแหน่งปัจจุบัน สังกัด")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationCompany",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "สำนัก/บริษัท บริษัท")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationDepartment",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "กอง/ฝ่าย บริษัท")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationEmail",
table: "PlacementProfiles",
type: "varchar(200)",
maxLength: 200,
nullable: true,
comment: "อีเมล บริษัท")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "OccupationType",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "ประเภทอาชีพที่ทำงานมาก่อน")
.Annotation("MySql:CharSet", "utf8mb4");
}
}
}