+22291
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,150 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class modifySurvey : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ManufacturerType",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "扫描设备厂商",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "扫描设备厂商");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "MagneticFieldStrengthType",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "磁场强度 (1.5T / 3.0T)",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "磁场强度 (1.5T / 3.0T)");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "HasT2R2Correction",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "bit",
|
||||
nullable: true,
|
||||
comment: "是否包含 T2/R2 校正(用于铁沉积校正)",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldComment: "是否包含 T2/R2 校正(用于铁沉积校正)");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "HasDedicatedPdfFatQuantificationSequence",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "bit",
|
||||
nullable: true,
|
||||
comment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldComment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "CanFullyExportPdfParameterMapsAndRawDicom",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "bit",
|
||||
nullable: true,
|
||||
comment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldComment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "BodyCoilChannelCount",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "体部线圈通道数 (≥16 或 <16)",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "体部线圈通道数 (≥16 或 <16)");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ManufacturerType",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "扫描设备厂商",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "扫描设备厂商");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "MagneticFieldStrengthType",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "磁场强度 (1.5T / 3.0T)",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "磁场强度 (1.5T / 3.0T)");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "HasT2R2Correction",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否包含 T2/R2 校正(用于铁沉积校正)",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldNullable: true,
|
||||
oldComment: "是否包含 T2/R2 校正(用于铁沉积校正)");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "HasDedicatedPdfFatQuantificationSequence",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldNullable: true,
|
||||
oldComment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "CanFullyExportPdfParameterMapsAndRawDicom",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldNullable: true,
|
||||
oldComment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "BodyCoilChannelCount",
|
||||
table: "TrialSiteEquipmentSurvey",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "体部线圈通道数 (≥16 或 <16)",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "体部线圈通道数 (≥16 或 <16)");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15023,11 +15023,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("BodyCoilChannelCount")
|
||||
b.Property<int?>("BodyCoilChannelCount")
|
||||
.HasColumnType("int")
|
||||
.HasComment("体部线圈通道数 (≥16 或 <16)");
|
||||
|
||||
b.Property<bool>("CanFullyExportPdfParameterMapsAndRawDicom")
|
||||
b.Property<bool?>("CanFullyExportPdfParameterMapsAndRawDicom")
|
||||
.HasColumnType("bit")
|
||||
.HasComment("是否可完整导出 PDFF 参数图及全部原始 DICOM 数据");
|
||||
|
||||
@@ -15045,15 +15045,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasComment("扫描设备-废弃");
|
||||
|
||||
b.Property<bool>("HasDedicatedPdfFatQuantificationSequence")
|
||||
b.Property<bool?>("HasDedicatedPdfFatQuantificationSequence")
|
||||
.HasColumnType("bit")
|
||||
.HasComment("是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)");
|
||||
|
||||
b.Property<bool>("HasT2R2Correction")
|
||||
b.Property<bool?>("HasT2R2Correction")
|
||||
.HasColumnType("bit")
|
||||
.HasComment("是否包含 T2/R2 校正(用于铁沉积校正)");
|
||||
|
||||
b.Property<int>("MagneticFieldStrengthType")
|
||||
b.Property<int?>("MagneticFieldStrengthType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("磁场强度 (1.5T / 3.0T)");
|
||||
|
||||
@@ -15063,7 +15063,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
.HasColumnType("nvarchar(400)")
|
||||
.HasComment("扫描设备厂商其他补充");
|
||||
|
||||
b.Property<int>("ManufacturerType")
|
||||
b.Property<int?>("ManufacturerType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("扫描设备厂商");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user