修复bug
parent
47480a5d4d
commit
5275c86a02
File diff suppressed because it is too large
Load Diff
|
|
@ -1,29 +0,0 @@
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class AddDeleteType : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.AddColumn<int>(
|
|
||||||
name: "AddDeleteTypeEnum",
|
|
||||||
table: "ReadingQuestionTrial",
|
|
||||||
type: "int",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "AddDeleteTypeEnum",
|
|
||||||
table: "ReadingQuestionTrial");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "10.0.8")
|
.HasAnnotation("ProductVersion", "8.0.19")
|
||||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
|
|
@ -2550,7 +2550,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("CreateUserId")
|
b.Property<Guid>("CreateUserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("CriterionTypeList")
|
b.Property<string>("CriterionTypeList")
|
||||||
.HasColumnType("nvarchar(max)")
|
.HasColumnType("nvarchar(max)")
|
||||||
.HasComment("邮件配置的多个标准");
|
.HasComment("邮件配置的多个标准");
|
||||||
|
|
||||||
|
|
@ -3248,7 +3248,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("ApplyCriterionList")
|
b.Property<string>("ApplyCriterionList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
|
@ -6803,7 +6803,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("阅片工具");
|
.HasComment("阅片工具");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("ReadingToolList")
|
b.Property<string>("ReadingToolList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
|
@ -6814,7 +6814,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<int>("ReadingVersionEnum")
|
b.Property<int>("ReadingVersionEnum")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("SegmentToolList")
|
b.Property<string>("SegmentToolList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
|
@ -7098,9 +7098,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("AddDeleteTypeEnum")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<string>("AnswerCombination")
|
b.Property<string>("AnswerCombination")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)")
|
.HasColumnType("nvarchar(max)")
|
||||||
|
|
@ -7178,7 +7175,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("nvarchar(400)")
|
.HasColumnType("nvarchar(400)")
|
||||||
.HasComment("字典code");
|
.HasComment("字典code");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("ExcludeShowVisitList")
|
b.Property<string>("ExcludeShowVisitList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
|
@ -12577,7 +12574,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("nvarchar(400)")
|
.HasColumnType("nvarchar(400)")
|
||||||
.HasComment("负责人PI");
|
.HasComment("负责人PI");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("ImageFormatList")
|
b.Property<string>("ImageFormatList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(2000)
|
.HasMaxLength(2000)
|
||||||
.HasColumnType("nvarchar(2000)");
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
@ -13755,7 +13752,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("后续删除,需要维护数据");
|
.HasComment("后续删除,需要维护数据");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("CriterionTypeList")
|
b.Property<string>("CriterionTypeList")
|
||||||
.HasColumnType("nvarchar(max)")
|
.HasColumnType("nvarchar(max)")
|
||||||
.HasComment("邮件配置的多个标准");
|
.HasComment("邮件配置的多个标准");
|
||||||
|
|
||||||
|
|
@ -16979,7 +16976,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("DateTimeList")
|
b.Property<string>("DateTimeList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
|
@ -16988,7 +16985,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("StringList")
|
b.Property<string>("StringList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
@ -16996,7 +16993,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<DateOnly?>("TestDate")
|
b.Property<DateOnly?>("TestDate")
|
||||||
.HasColumnType("date");
|
.HasColumnType("date");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("TestEnumList")
|
b.Property<string>("TestEnumList")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
@ -20374,28 +20371,31 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.OwnsMany("IRaCIS.Core.Domain.Models.StudyName", "StudyNameList", b1 =>
|
b.OwnsMany("IRaCIS.Core.Domain.Models.StudyName", "StudyNameList", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<Guid>("TrialId");
|
b1.Property<Guid>("TrialId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b1.Property<int>("__synthesizedOrdinal")
|
b1.Property<int>("Id")
|
||||||
.ValueGeneratedOnAddOrUpdate();
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
b1.Property<string>("EnName")
|
b1.Property<string>("EnName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400);
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b1.Property<bool>("IsChoose");
|
b1.Property<bool>("IsChoose")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b1.Property<string>("Name")
|
b1.Property<string>("Name")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400);
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b1.HasKey("TrialId", "__synthesizedOrdinal");
|
b1.HasKey("TrialId", "Id");
|
||||||
|
|
||||||
b1.ToTable("Trial");
|
b1.ToTable("Trial");
|
||||||
|
|
||||||
b1
|
b1.ToJson("StudyNameList");
|
||||||
.ToJson("StudyNameList")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b1.WithOwner()
|
b1.WithOwner()
|
||||||
.HasForeignKey("TrialId");
|
.HasForeignKey("TrialId");
|
||||||
|
|
@ -20403,28 +20403,31 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.OwnsMany("IRaCIS.Core.Domain.Models.TrialObjectNameConfig", "TrialObjectNameList", b1 =>
|
b.OwnsMany("IRaCIS.Core.Domain.Models.TrialObjectNameConfig", "TrialObjectNameList", b1 =>
|
||||||
{
|
{
|
||||||
b1.Property<Guid>("TrialId");
|
b1.Property<Guid>("TrialId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b1.Property<int>("__synthesizedOrdinal")
|
b1.Property<int>("Id")
|
||||||
.ValueGeneratedOnAddOrUpdate();
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
b1.Property<bool>("IsDefault");
|
b1.Property<bool>("IsDefault")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b1.Property<string>("Name")
|
b1.Property<string>("Name")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400);
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b1.Property<string>("TrialName")
|
b1.Property<string>("TrialName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400);
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b1.HasKey("TrialId", "__synthesizedOrdinal");
|
b1.HasKey("TrialId", "Id");
|
||||||
|
|
||||||
b1.ToTable("Trial");
|
b1.ToTable("Trial");
|
||||||
|
|
||||||
b1
|
b1.ToJson("TrialObjectNameList");
|
||||||
.ToJson("TrialObjectNameList")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b1.WithOwner()
|
b1.WithOwner()
|
||||||
.HasForeignKey("TrialId");
|
.HasForeignKey("TrialId");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue