uat-qc更新数据库
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
574629970c
commit
3b24e85d5f
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class qcSecond : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "SecondReviewTime",
|
||||
table: "TrialQCQuestionAnswer",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SecondReviewState",
|
||||
table: "SubjectVisit",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialQCQuestionAnswer_SubjectVisitId",
|
||||
table: "TrialQCQuestionAnswer",
|
||||
column: "SubjectVisitId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TrialQCQuestionAnswer_SubjectVisit_SubjectVisitId",
|
||||
table: "TrialQCQuestionAnswer",
|
||||
column: "SubjectVisitId",
|
||||
principalTable: "SubjectVisit",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TrialQCQuestionAnswer_SubjectVisit_SubjectVisitId",
|
||||
table: "TrialQCQuestionAnswer");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TrialQCQuestionAnswer_SubjectVisitId",
|
||||
table: "TrialQCQuestionAnswer");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SecondReviewTime",
|
||||
table: "TrialQCQuestionAnswer");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SecondReviewState",
|
||||
table: "SubjectVisit");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -9034,6 +9034,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)");
|
||||
|
||||
b.Property<int>("SecondReviewState")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid>("SubjectId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
@ -12882,6 +12885,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
b.Property<int>("QCProcessEnum")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("SecondReviewTime")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid>("SubjectVisitId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
@ -12901,6 +12907,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
|
||||
b.HasIndex("CreateUserId");
|
||||
|
||||
b.HasIndex("SubjectVisitId");
|
||||
|
||||
b.HasIndex("TrialQCQuestionConfigureId");
|
||||
|
||||
b.ToTable("TrialQCQuestionAnswer", t =>
|
||||
|
@ -18650,6 +18658,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.SubjectVisit", "SubjectVisit")
|
||||
.WithMany()
|
||||
.HasForeignKey("SubjectVisitId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.TrialQCQuestion", "TrialQCQuestionConfigure")
|
||||
.WithMany("TrialQCQuestionAnswerList")
|
||||
.HasForeignKey("TrialQCQuestionConfigureId")
|
||||
|
@ -18658,6 +18672,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
|
||||
b.Navigation("CreateUserRole");
|
||||
|
||||
b.Navigation("SubjectVisit");
|
||||
|
||||
b.Navigation("TrialQCQuestionConfigure");
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue