修改长度
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-11-22 17:59:47 +08:00
parent c7d9e02b8d
commit d0828ddf0e
4 changed files with 18229 additions and 4 deletions

View File

@ -185,11 +185,13 @@ public class Doctor : BaseFullAuditEntity
/// <summary>
/// ¹¤×÷¼æÖ°
/// </summary>
[MaxLength]
public string WorkPartTime { get; set; } = string.Empty;
/// <summary>
/// ¹¤×÷¼æÖ°En
/// </summary>
[MaxLength]
public string WorkPartTimeEn { get; set; } = string.Empty;
/// <summary>

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -1584,13 +1584,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<string>("WorkPartTime")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
.HasColumnType("nvarchar(max)");
b.Property<string>("WorkPartTimeEn")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
.HasColumnType("nvarchar(max)");
b.HasKey("Id");