60 lines
2.1 KiB
C#
60 lines
2.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Recruit.Service.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Updaterecruitimporttable : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Description",
|
|
table: "RecruitImports");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OrganizationId",
|
|
table: "RecruitImports");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OrganizationName",
|
|
table: "RecruitImports");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Description",
|
|
table: "RecruitImports",
|
|
type: "text",
|
|
nullable: false,
|
|
comment: "รายละเอียดของการสอบ")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "OrganizationId",
|
|
table: "RecruitImports",
|
|
type: "char(36)",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
|
comment: "รหัสหน่วยงานที่จัดสอบ",
|
|
collation: "ascii_general_ci")
|
|
.Annotation("Relational:ColumnOrder", 5);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OrganizationName",
|
|
table: "RecruitImports",
|
|
type: "varchar(250)",
|
|
maxLength: 250,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "หน่วยงานที่ทำการจัดสอบ")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.Annotation("Relational:ColumnOrder", 6);
|
|
}
|
|
}
|
|
}
|