wxd 1 month ago
parent
commit
1ee00d37d4
  1. 8356
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250717102431_person_update_idno_index.Designer.cs
  2. 37
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250717102431_person_update_idno_index.cs
  3. 8356
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115023710_update_asbitem_clinical_meaning_length.Designer.cs
  4. 44
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115023710_update_asbitem_clinical_meaning_length.cs
  5. 8356
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115024527_update_cctjzx_length.Designer.cs
  6. 160
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115024527_update_cctjzx_length.cs
  7. 31
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/WebPeisDbContextModelSnapshot.cs

8356
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250717102431_person_update_idno_index.Designer.cs
File diff suppressed because it is too large
View File

37
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250717102431_person_update_idno_index.cs

@ -0,0 +1,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.WebPeis.Migrations
{
/// <inheritdoc />
public partial class person_update_idno_index : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "ix_person_id_no",
table: "person");
migrationBuilder.CreateIndex(
name: "ix_person_id_no",
table: "person",
column: "id_no");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "ix_person_id_no",
table: "person");
migrationBuilder.CreateIndex(
name: "ix_person_id_no",
table: "person",
column: "id_no",
unique: true);
}
}
}

8356
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115023710_update_asbitem_clinical_meaning_length.Designer.cs
File diff suppressed because it is too large
View File

44
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115023710_update_asbitem_clinical_meaning_length.cs

@ -0,0 +1,44 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.WebPeis.Migrations
{
/// <inheritdoc />
public partial class update_asbitem_clinical_meaning_length : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "clinical_meaning",
table: "asbitem",
type: "character varying(500)",
maxLength: 500,
nullable: true,
comment: "临床意义",
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldNullable: true,
oldComment: "临床意义");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "clinical_meaning",
table: "asbitem",
type: "character varying(100)",
maxLength: 100,
nullable: true,
comment: "临床意义",
oldClrType: typeof(string),
oldType: "character varying(500)",
oldMaxLength: 500,
oldNullable: true,
oldComment: "临床意义");
}
}
}

8356
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115024527_update_cctjzx_length.Designer.cs
File diff suppressed because it is too large
View File

160
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115024527_update_cctjzx_length.cs

@ -0,0 +1,160 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.WebPeis.Migrations
{
/// <inheritdoc />
public partial class update_cctjzx_length : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "job_post",
table: "patient_register",
type: "character varying(50)",
maxLength: 50,
nullable: true,
comment: "职务",
oldClrType: typeof(string),
oldType: "character varying(10)",
oldMaxLength: 10,
oldNullable: true,
oldComment: "职务");
migrationBuilder.AlterColumn<string>(
name: "simple_code",
table: "medical_package",
type: "character varying(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "medical_package_name",
table: "medical_package",
type: "character varying(50)",
maxLength: 50,
nullable: false,
comment: "名称",
oldClrType: typeof(string),
oldType: "character varying(20)",
oldMaxLength: 20,
oldComment: "名称");
migrationBuilder.AlterColumn<string>(
name: "simple_code",
table: "diagnosis",
type: "character varying(300)",
maxLength: 300,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "diagnosis_name",
table: "diagnosis",
type: "character varying(300)",
maxLength: 300,
nullable: false,
comment: "名称",
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldComment: "名称");
migrationBuilder.AlterColumn<string>(
name: "short_name",
table: "customer_org",
type: "character varying(50)",
maxLength: 50,
nullable: false,
comment: "简称",
oldClrType: typeof(string),
oldType: "character varying(20)",
oldMaxLength: 20,
oldComment: "简称");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "job_post",
table: "patient_register",
type: "character varying(10)",
maxLength: 10,
nullable: true,
comment: "职务",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldNullable: true,
oldComment: "职务");
migrationBuilder.AlterColumn<string>(
name: "simple_code",
table: "medical_package",
type: "character varying(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "medical_package_name",
table: "medical_package",
type: "character varying(20)",
maxLength: 20,
nullable: false,
comment: "名称",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldComment: "名称");
migrationBuilder.AlterColumn<string>(
name: "simple_code",
table: "diagnosis",
type: "character varying(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(300)",
oldMaxLength: 300,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "diagnosis_name",
table: "diagnosis",
type: "character varying(100)",
maxLength: 100,
nullable: false,
comment: "名称",
oldClrType: typeof(string),
oldType: "character varying(300)",
oldMaxLength: 300,
oldComment: "名称");
migrationBuilder.AlterColumn<string>(
name: "short_name",
table: "customer_org",
type: "character varying(20)",
maxLength: 20,
nullable: false,
comment: "简称",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldComment: "简称");
}
}
}

31
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/WebPeisDbContextModelSnapshot.cs

@ -586,8 +586,8 @@ namespace Shentun.WebPeis.Migrations
.HasComment("名称");
b.Property<string>("ClinicalMeaning")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasMaxLength(500)
.HasColumnType("character varying(500)")
.HasColumnName("clinical_meaning")
.HasComment("临床意义");
@ -1248,8 +1248,8 @@ namespace Shentun.WebPeis.Migrations
b.Property<string>("ShortName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("short_name")
.HasComment("简称");
@ -1560,8 +1560,8 @@ namespace Shentun.WebPeis.Migrations
b.Property<string>("DiagnosisName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("diagnosis_name")
.HasComment("名称");
@ -1596,8 +1596,8 @@ namespace Shentun.WebPeis.Migrations
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("simple_code");
b.Property<string>("SuggestionName")
@ -2438,8 +2438,8 @@ namespace Shentun.WebPeis.Migrations
b.Property<string>("MedicalPackageName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("medical_package_name")
.HasComment("名称");
@ -2456,8 +2456,8 @@ namespace Shentun.WebPeis.Migrations
.HasComment("备注");
b.Property<string>("SimpleCode")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("simple_code");
b.HasKey("MedicalPackageId")
@ -2815,8 +2815,8 @@ namespace Shentun.WebPeis.Migrations
.HasComment("工卡号");
b.Property<string>("JobPost")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("job_post")
.HasComment("职务");
@ -3348,8 +3348,7 @@ namespace Shentun.WebPeis.Migrations
b.HasIndex(new[] { "PersonNo" }, "IX_person_person_no")
.IsUnique();
b.HasIndex(new[] { "IdNo" }, "ix_person_id_no")
.IsUnique();
b.HasIndex(new[] { "IdNo" }, "ix_person_id_no");
b.ToTable("person", null, t =>
{

Loading…
Cancel
Save