7 changed files with 25324 additions and 16 deletions
-
8356src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250717102431_person_update_idno_index.Designer.cs
-
37src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250717102431_person_update_idno_index.cs
-
8356src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115023710_update_asbitem_clinical_meaning_length.Designer.cs
-
44src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115023710_update_asbitem_clinical_meaning_length.cs
-
8356src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115024527_update_cctjzx_length.Designer.cs
-
160src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20251115024527_update_cctjzx_length.cs
-
31src/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
File diff suppressed because it is too large
View File
@ -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
File diff suppressed because it is too large
View File
@ -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
File diff suppressed because it is too large
View File
@ -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: "简称"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue