Add github action script and fixbug
This commit is contained in:
parent
f2dcf9bb49
commit
4c0ae730df
49 changed files with 6687 additions and 338 deletions
86
Migrations/20230406023520_Update Recruit Relation.cs
Normal file
86
Migrations/20230406023520_Update Recruit Relation.cs
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UpdateRecruitRelation : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_RecruitImports_ScoreImports_ScoreImportId",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_RecruitImports_ScoreImportId",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScoreImportId",
|
||||
table: "RecruitImports");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RecruitImportId",
|
||||
table: "ScoreImports",
|
||||
type: "char(36)",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ScoreImports_RecruitImportId",
|
||||
table: "ScoreImports",
|
||||
column: "RecruitImportId",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_ScoreImports_RecruitImports_RecruitImportId",
|
||||
table: "ScoreImports",
|
||||
column: "RecruitImportId",
|
||||
principalTable: "RecruitImports",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_ScoreImports_RecruitImports_RecruitImportId",
|
||||
table: "ScoreImports");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_ScoreImports_RecruitImportId",
|
||||
table: "ScoreImports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RecruitImportId",
|
||||
table: "ScoreImports");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ScoreImportId",
|
||||
table: "RecruitImports",
|
||||
type: "char(36)",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RecruitImports_ScoreImportId",
|
||||
table: "RecruitImports",
|
||||
column: "ScoreImportId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_RecruitImports_ScoreImports_ScoreImportId",
|
||||
table: "RecruitImports",
|
||||
column: "ScoreImportId",
|
||||
principalTable: "ScoreImports",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue