修改字段长度
This commit is contained in:
@@ -160,6 +160,7 @@ public class ReadingQuestionTrial : BaseAddAuditEntity
|
||||
public string AnswerGroup { get; set; } = "[]";
|
||||
|
||||
[Comment("答案组合")]
|
||||
[MaxLength]
|
||||
public string AnswerCombination { get; set; } = "[]";
|
||||
|
||||
[Comment("裁判类型")]
|
||||
|
||||
+19911
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")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)")
|
||||
.HasColumnType("nvarchar(max)")
|
||||
.HasComment("答案组合");
|
||||
|
||||
b.Property<string>("AnswerGroup")
|
||||
|
||||
Reference in New Issue
Block a user