using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace IRaCIS.Core.Infra.EFCore.Migrations { /// public partial class modifySurvey : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ManufacturerType", table: "TrialSiteEquipmentSurvey", type: "int", nullable: true, comment: "扫描设备厂商", oldClrType: typeof(int), oldType: "int", oldComment: "扫描设备厂商"); migrationBuilder.AlterColumn( 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( name: "HasT2R2Correction", table: "TrialSiteEquipmentSurvey", type: "bit", nullable: true, comment: "是否包含 T2/R2 校正(用于铁沉积校正)", oldClrType: typeof(bool), oldType: "bit", oldComment: "是否包含 T2/R2 校正(用于铁沉积校正)"); migrationBuilder.AlterColumn( name: "HasDedicatedPdfFatQuantificationSequence", table: "TrialSiteEquipmentSurvey", type: "bit", nullable: true, comment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)", oldClrType: typeof(bool), oldType: "bit", oldComment: "是否具备专用的PDFF脂肪定量序列(CSE-MRI序列)"); migrationBuilder.AlterColumn( name: "CanFullyExportPdfParameterMapsAndRawDicom", table: "TrialSiteEquipmentSurvey", type: "bit", nullable: true, comment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据", oldClrType: typeof(bool), oldType: "bit", oldComment: "是否可完整导出 PDFF 参数图及全部原始 DICOM 数据"); migrationBuilder.AlterColumn( name: "BodyCoilChannelCount", table: "TrialSiteEquipmentSurvey", type: "int", nullable: true, comment: "体部线圈通道数 (≥16 或 <16)", oldClrType: typeof(int), oldType: "int", oldComment: "体部线圈通道数 (≥16 或 <16)"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ManufacturerType", table: "TrialSiteEquipmentSurvey", type: "int", nullable: false, defaultValue: 0, comment: "扫描设备厂商", oldClrType: typeof(int), oldType: "int", oldNullable: true, oldComment: "扫描设备厂商"); migrationBuilder.AlterColumn( 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( 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( 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( 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( name: "BodyCoilChannelCount", table: "TrialSiteEquipmentSurvey", type: "int", nullable: false, defaultValue: 0, comment: "体部线圈通道数 (≥16 或 <16)", oldClrType: typeof(int), oldType: "int", oldNullable: true, oldComment: "体部线圈通道数 (≥16 或 <16)"); } } }