修改字段长度
parent
02e9d1b7cd
commit
de976453f5
|
@ -160,6 +160,7 @@ public class ReadingQuestionTrial : BaseAddAuditEntity
|
||||||
public string AnswerGroup { get; set; } = "[]";
|
public string AnswerGroup { get; set; } = "[]";
|
||||||
|
|
||||||
[Comment("答案组合")]
|
[Comment("答案组合")]
|
||||||
|
[MaxLength]
|
||||||
public string AnswerCombination { get; set; } = "[]";
|
public string AnswerCombination { get; set; } = "[]";
|
||||||
|
|
||||||
[Comment("裁判类型")]
|
[Comment("裁判类型")]
|
||||||
|
|
19911
IRaCIS.Core.Infra.EFCore/Migrations/20250806083458_AnswerCombination.Designer.cs
generated
Normal file
19911
IRaCIS.Core.Infra.EFCore/Migrations/20250806083458_AnswerCombination.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -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: "答案组合");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -6199,8 +6199,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("AnswerCombination")
|
b.Property<string>("AnswerCombination")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasColumnType("nvarchar(max)")
|
||||||
.HasColumnType("nvarchar(400)")
|
|
||||||
.HasComment("答案组合");
|
.HasComment("答案组合");
|
||||||
|
|
||||||
b.Property<string>("AnswerGroup")
|
b.Property<string>("AnswerGroup")
|
||||||
|
|
Loading…
Reference in New Issue