Browse Source

修改字段

bjmzak
wxd 2 years ago
parent
commit
f21ae00432
  1. 13418
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.Designer.cs
  2. 65
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.cs
  3. 51
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

13418
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.Designer.cs
File diff suppressed because it is too large
View File

65
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.cs

@ -0,0 +1,65 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240325003 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "customer_org_register_id",
table: "patient_register",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
comment: "客户单位登记ID",
oldClrType: typeof(Guid),
oldType: "uuid",
oldNullable: true,
oldComment: "客户单位登记ID");
migrationBuilder.AlterColumn<Guid>(
name: "customer_org_id",
table: "patient_register",
type: "uuid",
fixedLength: true,
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
comment: "单位编号",
oldClrType: typeof(Guid),
oldType: "uuid",
oldFixedLength: true,
oldNullable: true,
oldComment: "单位编号");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "customer_org_register_id",
table: "patient_register",
type: "uuid",
nullable: true,
comment: "客户单位登记ID",
oldClrType: typeof(Guid),
oldType: "uuid",
oldDefaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldComment: "客户单位登记ID");
migrationBuilder.AlterColumn<Guid>(
name: "customer_org_id",
table: "patient_register",
type: "uuid",
fixedLength: true,
nullable: true,
comment: "单位编号",
oldClrType: typeof(Guid),
oldType: "uuid",
oldFixedLength: true,
oldComment: "单位编号");
}
}
}

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

@ -5694,8 +5694,7 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char?>("MaritalStatusId")
.IsRequired()
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -5734,8 +5733,7 @@ namespace Shentun.Peis.Migrations
.HasColumnName("postal_code")
.HasComment("邮政编码");
b.Property<char?>("SexId")
.IsRequired()
b.Property<char>("SexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6070,8 +6068,7 @@ namespace Shentun.Peis.Migrations
.HasColumnName("birth_date")
.HasComment("出生日期");
b.Property<char?>("CompleteFlag")
.IsRequired()
b.Property<char>("CompleteFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6100,19 +6097,20 @@ namespace Shentun.Peis.Migrations
.IsFixedLength()
.HasComment("分组");
b.Property<Guid?>("CustomerOrgId")
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id")
.IsFixedLength()
.HasComment("单位编号");
b.Property<Guid?>("CustomerOrgRegisterId")
b.Property<Guid>("CustomerOrgRegisterId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasDefaultValue(new Guid("00000000-0000-0000-0000-000000000000"))
.HasColumnName("customer_org_register_id")
.HasComment("客户单位登记ID");
b.Property<short?>("GuidePrintTimes")
.IsRequired()
b.Property<short>("GuidePrintTimes")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)0)
@ -6125,8 +6123,7 @@ namespace Shentun.Peis.Migrations
.HasColumnName("interpose_measure")
.HasComment("干预措施");
b.Property<char?>("IsAudit")
.IsRequired()
b.Property<char>("IsAudit")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6143,8 +6140,7 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("锁住");
b.Property<char?>("IsMedicalStart")
.IsRequired()
b.Property<char>("IsMedicalStart")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6152,8 +6148,7 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("体检开始标志");
b.Property<char?>("IsNameHide")
.IsRequired()
b.Property<char>("IsNameHide")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6161,8 +6156,7 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("隐藏姓名");
b.Property<char?>("IsPhoneFollow")
.IsRequired()
b.Property<char>("IsPhoneFollow")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6170,8 +6164,7 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("电话随访");
b.Property<char?>("IsRecoverGuide")
.IsRequired()
b.Property<char>("IsRecoverGuide")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6179,8 +6172,7 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("指引单收回");
b.Property<char?>("IsUpload")
.IsRequired()
b.Property<char>("IsUpload")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6188,8 +6180,7 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("是否上传到WEB");
b.Property<char?>("IsVip")
.IsRequired()
b.Property<char>("IsVip")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6225,8 +6216,7 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char?>("MaritalStatusId")
.IsRequired()
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -6271,8 +6261,7 @@ namespace Shentun.Peis.Migrations
.IsFixedLength()
.HasComment("体检类别");
b.Property<Guid?>("OrganizationUnitId")
.IsRequired()
b.Property<Guid>("OrganizationUnitId")
.HasColumnType("uuid")
.HasColumnName("organization_unit_id")
.HasComment("体检中心ID");
@ -6314,8 +6303,7 @@ namespace Shentun.Peis.Migrations
.HasColumnName("remark")
.HasComment("备注");
b.Property<short?>("ReportPrintTimes")
.IsRequired()
b.Property<short>("ReportPrintTimes")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)0)
@ -6333,8 +6321,7 @@ namespace Shentun.Peis.Migrations
.HasColumnName("sex_hormone_term_id")
.HasComment("性激素期限");
b.Property<char?>("SexId")
.IsRequired()
b.Property<char>("SexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")

Loading…
Cancel
Save