Browse Source

档案表电话字段加长

master
wxd 1 year ago
parent
commit
64af592368
  1. 2
      src/Shentun.Peis.Domain/Patients/Patient.cs
  2. 14999
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240620092124_init20240620001.Designer.cs
  3. 41
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240620092124_init20240620001.cs
  4. 4
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

2
src/Shentun.Peis.Domain/Patients/Patient.cs

@ -100,7 +100,7 @@ namespace Shentun.Peis.Models
/// 电话
/// </summary>
[Column("telephone")]
[StringLength(20)]
[StringLength(50)]
public string? Telephone { get; set; }
/// <summary>
/// 手机号

14999
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240620092124_init20240620001.Designer.cs
File diff suppressed because it is too large
View File

41
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240620092124_init20240620001.cs

@ -0,0 +1,41 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240620001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "telephone",
table: "patient",
type: "character varying(50)",
maxLength: 50,
nullable: true,
comment: "电话",
oldClrType: typeof(string),
oldType: "character varying(20)",
oldMaxLength: 20,
oldNullable: true,
oldComment: "电话");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "telephone",
table: "patient",
type: "character varying(20)",
maxLength: 20,
nullable: true,
comment: "电话",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldNullable: true,
oldComment: "电话");
}
}
}

4
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -6553,8 +6553,8 @@ namespace Shentun.Peis.Migrations
.HasComment("简码");
b.Property<string>("Telephone")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("telephone")
.HasComment("电话");

Loading…
Cancel
Save