Add github action script and fixbug
This commit is contained in:
parent
f2dcf9bb49
commit
4c0ae730df
49 changed files with 6687 additions and 338 deletions
1196
Migrations/20230403104559_Update Recruit Score Relationship.Designer.cs
generated
Normal file
1196
Migrations/20230403104559_Update Recruit Score Relationship.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,52 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UpdateRecruitScoreRelationship : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(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");
|
||||
}
|
||||
}
|
||||
}
|
||||
1205
Migrations/20230405071839_Update Recruit missing field.Designer.cs
generated
Normal file
1205
Migrations/20230405071839_Update Recruit missing field.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
52
Migrations/20230405071839_Update Recruit missing field.cs
Normal file
52
Migrations/20230405071839_Update Recruit missing field.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UpdateRecruitmissingfield : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ApplyDate",
|
||||
table: "Recruits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "CreatedDate",
|
||||
table: "Recruits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ModifiedDate",
|
||||
table: "Recruits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ApplyDate",
|
||||
table: "Recruits");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CreatedDate",
|
||||
table: "Recruits");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ModifiedDate",
|
||||
table: "Recruits");
|
||||
}
|
||||
}
|
||||
}
|
||||
1209
Migrations/20230406023520_Update Recruit Relation.Designer.cs
generated
Normal file
1209
Migrations/20230406023520_Update Recruit Relation.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
1209
Migrations/20230406025805_Update View Info.Designer.cs
generated
Normal file
1209
Migrations/20230406025805_Update View Info.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
22
Migrations/20230406025805_Update View Info.cs
Normal file
22
Migrations/20230406025805_Update View Info.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UpdateViewInfo : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -62,6 +62,9 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<DateTime>("ApplyDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<DateTime>("CitizenCardExpireDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
|
|
@ -81,6 +84,9 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasColumnOrder(100)
|
||||
.HasComment("สร้างข้อมูลเมื่อ");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("CreatedFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
|
|
@ -147,6 +153,9 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("National")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
|
|
@ -1023,6 +1032,9 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<Guid>("RecruitImportId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
|
@ -1030,6 +1042,9 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
|
||||
b.HasIndex("ImportFileId");
|
||||
|
||||
b.HasIndex("RecruitImportId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("ScoreImports");
|
||||
});
|
||||
|
||||
|
|
@ -1147,7 +1162,15 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BMA.EHR.Recruit.Service.Models.Recruits.RecruitImport", "RecruitImport")
|
||||
.WithOne("ScoreImport")
|
||||
.HasForeignKey("BMA.EHR.Recruit.Service.Models.Recruits.ScoreImport", "RecruitImportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("ImportFile");
|
||||
|
||||
b.Navigation("RecruitImport");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.Recruit", b =>
|
||||
|
|
@ -1168,6 +1191,9 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.RecruitImport", b =>
|
||||
{
|
||||
b.Navigation("Recruits");
|
||||
|
||||
b.Navigation("ScoreImport")
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.ScoreImport", b =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue