修改字段长度

Test_IRC_Net8^2
he 2025-08-06 16:35:43 +08:00
parent 02e9d1b7cd
commit de976453f5
4 changed files with 19953 additions and 2 deletions

View File

@ -160,6 +160,7 @@ public class ReadingQuestionTrial : BaseAddAuditEntity
public string AnswerGroup { get; set; } = "[]";
[Comment("答案组合")]
[MaxLength]
public string AnswerCombination { get; set; } = "[]";
[Comment("裁判类型")]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class AnswerCombination : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "AnswerCombination",
table: "ReadingQuestionTrial",
type: "nvarchar(max)",
nullable: false,
comment: "答案组合",
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400,
oldComment: "答案组合");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "AnswerCombination",
table: "ReadingQuestionTrial",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
comment: "答案组合",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "答案组合");
}
}
}

View File

@ -6199,8 +6199,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<string>("AnswerCombination")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)")
.HasColumnType("nvarchar(max)")
.HasComment("答案组合");
b.Property<string>("AnswerGroup")