irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20260521061048_modifySurvey.cs

151 lines
6.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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)");
}
}
}