add feature
This commit is contained in:
parent
b2abfe9e87
commit
b7fe4fc1f7
41 changed files with 2182 additions and 524 deletions
1185
Migrations/20230323020854_Update recruit import table.Designer.cs
generated
Normal file
1185
Migrations/20230323020854_Update recruit import table.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
60
Migrations/20230323020854_Update recruit import table.cs
Normal file
60
Migrations/20230323020854_Update recruit import table.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -605,12 +605,6 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("รายละเอียดของการสอบ");
|
||||
|
||||
b.Property<Guid>("ImportFileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
|
|
@ -645,18 +639,6 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasColumnOrder(3)
|
||||
.HasComment("ครั้งที่");
|
||||
|
||||
b.Property<Guid>("OrganizationId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("รหัสหน่วยงานที่จัดสอบ");
|
||||
|
||||
b.Property<string>("OrganizationName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(250)
|
||||
.HasColumnType("varchar(250)")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("หน่วยงานที่ทำการจัดสอบ");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("int")
|
||||
.HasColumnOrder(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue