add field to support cms and change sum api
This commit is contained in:
parent
6d9f252f1a
commit
b8109e80ac
16 changed files with 2132 additions and 23 deletions
|
|
@ -0,0 +1,188 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddFieldtoRecruitImportTableforSupportCMS : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "Year",
|
||||
table: "RecruitImports",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
comment: "ปีงบประมาณที่จัดสอบ",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "ปีที่จัดการสอบ");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Name",
|
||||
table: "RecruitImports",
|
||||
type: "varchar(250)",
|
||||
maxLength: 250,
|
||||
nullable: false,
|
||||
comment: "รอบการสอบ",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(250)",
|
||||
oldMaxLength: 250,
|
||||
oldComment: "ชื่อการสอบ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "AnnouncementEndDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันสิ้นสุดประกาศ")
|
||||
.Annotation("Relational:ColumnOrder", 7);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "AnnouncementStartDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันเริ่มประกาศ")
|
||||
.Annotation("Relational:ColumnOrder", 6);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Detail",
|
||||
table: "RecruitImports",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
comment: "รายละเอียด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ExamDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันที่สอบ")
|
||||
.Annotation("Relational:ColumnOrder", 12);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Fee",
|
||||
table: "RecruitImports",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "ค่าธรรมเนียม")
|
||||
.Annotation("Relational:ColumnOrder", 5);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Note",
|
||||
table: "RecruitImports",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
comment: "หมายเหตุ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "PaymentEndDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันสิ้นสุดชำระเงิน")
|
||||
.Annotation("Relational:ColumnOrder", 9);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "PaymentStartDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันเริ่มชำระเงิน")
|
||||
.Annotation("Relational:ColumnOrder", 8);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "RegisterEndDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันสิ้นสุดสมัครสอบ")
|
||||
.Annotation("Relational:ColumnOrder", 11);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "RegisterStartDate",
|
||||
table: "RecruitImports",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันเริ่มสมัครสอบ")
|
||||
.Annotation("Relational:ColumnOrder", 10);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AnnouncementEndDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AnnouncementStartDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Detail",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExamDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Fee",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Note",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PaymentEndDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PaymentStartDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RegisterEndDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RegisterStartDate",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "Year",
|
||||
table: "RecruitImports",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
comment: "ปีที่จัดการสอบ",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "ปีงบประมาณที่จัดสอบ");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Name",
|
||||
table: "RecruitImports",
|
||||
type: "varchar(250)",
|
||||
maxLength: 250,
|
||||
nullable: false,
|
||||
comment: "ชื่อการสอบ",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(250)",
|
||||
oldMaxLength: 250,
|
||||
oldComment: "รอบการสอบ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue