wxd 4 months ago
parent
commit
aac52e44bf
  1. 16480
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229022617_update_patient_register_add_delete.Designer.cs
  2. 99
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229022617_update_patient_register_add_delete.cs
  3. 16480
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229025434_xf_table_column_lowercase.Designer.cs
  4. 45
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229025434_xf_table_column_lowercase.cs
  5. 18
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

16480
src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229022617_update_patient_register_add_delete.Designer.cs
File diff suppressed because it is too large
View File

99
src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229022617_update_patient_register_add_delete.cs

@ -0,0 +1,99 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class update_patient_register_add_delete : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "upper_diagnosis_id",
table: "sex_hormone_reference_range",
type: "uuid",
fixedLength: true,
nullable: true,
comment: "上限诊断",
oldClrType: typeof(Guid),
oldType: "uuid",
oldFixedLength: true,
oldComment: "上限诊断");
migrationBuilder.AlterColumn<Guid>(
name: "lower_diagnosis_id",
table: "sex_hormone_reference_range",
type: "uuid",
fixedLength: true,
nullable: true,
comment: "下限诊断",
oldClrType: typeof(Guid),
oldType: "uuid",
oldFixedLength: true,
oldComment: "下限诊断");
migrationBuilder.AddColumn<Guid>(
name: "DeleterId",
table: "patient_register",
type: "uuid",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "DeletionTime",
table: "patient_register",
type: "timestamp without time zone",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "patient_register",
type: "boolean",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DeleterId",
table: "patient_register");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "patient_register");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "patient_register");
migrationBuilder.AlterColumn<Guid>(
name: "upper_diagnosis_id",
table: "sex_hormone_reference_range",
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: "上限诊断");
migrationBuilder.AlterColumn<Guid>(
name: "lower_diagnosis_id",
table: "sex_hormone_reference_range",
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: "下限诊断");
}
}
}

16480
src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229025434_xf_table_column_lowercase.Designer.cs
File diff suppressed because it is too large
View File

45
src/Shentun.Peis.EntityFrameworkCore/Migrations/20251229025434_xf_table_column_lowercase.cs

@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class xf_table_column_lowercase : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "IsDeleted",
table: "patient_register",
newName: "is_deleted");
migrationBuilder.RenameColumn(
name: "DeletionTime",
table: "patient_register",
newName: "deletion_time");
migrationBuilder.RenameColumn(
name: "DeleterId",
table: "patient_register",
newName: "deleter_id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "is_deleted",
table: "patient_register",
newName: "IsDeleted");
migrationBuilder.RenameColumn(
name: "deletion_time",
table: "patient_register",
newName: "DeletionTime");
migrationBuilder.RenameColumn(
name: "deleter_id",
table: "patient_register",
newName: "DeleterId");
}
}
}

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

@ -7659,6 +7659,14 @@ namespace Shentun.Peis.Migrations
.HasColumnName("customer_org_register_id") .HasColumnName("customer_org_register_id")
.HasComment("客户单位登记ID"); .HasComment("客户单位登记ID");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("deletion_time");
b.Property<short>("DeviceGuidePrintTimes") b.Property<short>("DeviceGuidePrintTimes")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasColumnType("smallint") .HasColumnType("smallint")
@ -7699,6 +7707,12 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'") .HasDefaultValueSql("'N'")
.HasComment("审核"); .HasComment("审核");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<char>("IsLock") b.Property<char>("IsLock")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasMaxLength(1) .HasMaxLength(1)
@ -10830,7 +10844,7 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("last_modifier_id"); .HasColumnName("last_modifier_id");
b.Property<Guid>("LowerDiagnosisId")
b.Property<Guid?>("LowerDiagnosisId")
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("lower_diagnosis_id") .HasColumnName("lower_diagnosis_id")
.IsFixedLength() .IsFixedLength()
@ -10848,7 +10862,7 @@ namespace Shentun.Peis.Migrations
.IsFixedLength() .IsFixedLength()
.HasComment("性激素期限ID"); .HasComment("性激素期限ID");
b.Property<Guid>("UpperDiagnosisId")
b.Property<Guid?>("UpperDiagnosisId")
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("upper_diagnosis_id") .HasColumnName("upper_diagnosis_id")
.IsFixedLength() .IsFixedLength()

Loading…
Cancel
Save