修改字段类型

Uat_IRC_Net8
hang 2026-05-28 16:49:11 +08:00
parent f6530cfb32
commit d7da7b69d4
5 changed files with 22379 additions and 4 deletions

View File

@ -358,7 +358,7 @@ namespace IRaCIS.Core.Application.Contracts
public bool? ISStrictManualBurnFlag { get; set; }
[Comment("不严格按照影像手册参数完成刻盘原因")]
public bool? NotStrictManualBurnFlagReason { get; set; }
public string NotStrictManualBurnFlagReason { get; set; }
}

View File

@ -80,6 +80,6 @@ public class TrialSiteSurvey : BaseFullDeleteAuditEntity
public bool? ISStrictManualBurnFlag { get; set; }
[Comment("不严格按照影像手册参数完成刻盘原因")]
public bool? NotStrictManualBurnFlagReason { get; set; }
public string NotStrictManualBurnFlagReason { get; set; }
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class siteSurveyOther1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "NotStrictManualBurnFlagReason",
table: "TrialSiteSurvey",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
defaultValue: "",
comment: "不严格按照影像手册参数完成刻盘原因",
oldClrType: typeof(bool),
oldType: "bit",
oldNullable: true,
oldComment: "不严格按照影像手册参数完成刻盘原因");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "NotStrictManualBurnFlagReason",
table: "TrialSiteSurvey",
type: "bit",
nullable: true,
comment: "不严格按照影像手册参数完成刻盘原因",
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400,
oldComment: "不严格按照影像手册参数完成刻盘原因");
}
}
}

View File

@ -15208,8 +15208,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<bool?>("NotStrictManualBurnFlagReason")
.HasColumnType("bit")
b.Property<string>("NotStrictManualBurnFlagReason")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)")
.HasComment("不严格按照影像手册参数完成刻盘原因");
b.Property<string>("Phone")