7 changed files with 16240 additions and 34 deletions
-
2src/Shentun.Peis.Application.Contracts/BigtextResultDescriptions/BigtextResultDescriptionIdInputDto.cs
-
12src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs
-
4src/Shentun.Peis.DbMigrator/appsettings.json
-
4src/Shentun.Peis.Domain/BigtextResultTypes/BigtextResultTypeManager.cs
-
15609src/Shentun.Peis.EntityFrameworkCore/Migrations/20240903025304_update_bigtextresult.Designer.cs
-
566src/Shentun.Peis.EntityFrameworkCore/Migrations/20240903025304_update_bigtextresult.cs
-
77src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
15609
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240903025304_update_bigtextresult.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,566 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class update_bigtextresult : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_register_check_pacs_register_check_register_check_id", |
|||
table: "register_check_pacs"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_register_check_pacs_picture_register_check_pacs_register_ch~", |
|||
table: "register_check_pacs_picture"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "Id", |
|||
table: "register_check_pacs_picture", |
|||
newName: "id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "LastModifierId", |
|||
table: "register_check_pacs_picture", |
|||
newName: "last_modifier_id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "LastModificationTime", |
|||
table: "register_check_pacs_picture", |
|||
newName: "last_modification_time"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CreatorId", |
|||
table: "register_check_pacs_picture", |
|||
newName: "creator_id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CreationTime", |
|||
table: "register_check_pacs_picture", |
|||
newName: "creation_time"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "ConcurrencyStamp", |
|||
table: "register_check_pacs_picture", |
|||
newName: "concurrency_stamp"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "Id", |
|||
table: "register_check_pacs", |
|||
newName: "id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "LastModifierId", |
|||
table: "register_check_pacs", |
|||
newName: "last_modifier_id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "LastModificationTime", |
|||
table: "register_check_pacs", |
|||
newName: "last_modification_time"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CreatorId", |
|||
table: "register_check_pacs", |
|||
newName: "creator_id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CreationTime", |
|||
table: "register_check_pacs", |
|||
newName: "creation_time"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "ConcurrencyStamp", |
|||
table: "register_check_pacs", |
|||
newName: "concurrency_stamp"); |
|||
|
|||
migrationBuilder.AlterTable( |
|||
name: "register_check_pacs_picture", |
|||
comment: "pacs检查信息图片"); |
|||
|
|||
migrationBuilder.AlterTable( |
|||
name: "register_check_pacs", |
|||
comment: "pacs检查信息主表"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "register_check_pacs_id", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: false, |
|||
comment: "pacs检查信息主表id", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "picture_path_name", |
|||
table: "register_check_pacs_picture", |
|||
type: "character varying(200)", |
|||
maxLength: 200, |
|||
nullable: true, |
|||
comment: "图片文件", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(200)", |
|||
oldMaxLength: 200, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "display_order", |
|||
table: "register_check_pacs_picture", |
|||
type: "integer", |
|||
nullable: false, |
|||
defaultValueSql: "1", |
|||
comment: "显示顺序", |
|||
oldClrType: typeof(int), |
|||
oldType: "integer"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "display_name", |
|||
table: "register_check_pacs_picture", |
|||
type: "character varying(100)", |
|||
maxLength: 100, |
|||
nullable: true, |
|||
comment: "图片名称", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(100)", |
|||
oldMaxLength: 100, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "id", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: false, |
|||
comment: "检查图片编号", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "last_modifier_id", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "last_modification_time", |
|||
table: "register_check_pacs_picture", |
|||
type: "timestamp without time zone", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "creator_id", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "register_check_id", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: false, |
|||
comment: "登记流水号", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "display_order", |
|||
table: "register_check_pacs", |
|||
type: "integer", |
|||
nullable: false, |
|||
defaultValueSql: "1", |
|||
comment: "显示顺序", |
|||
oldClrType: typeof(int), |
|||
oldType: "integer"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "dicom_path_name", |
|||
table: "register_check_pacs", |
|||
type: "character varying(200)", |
|||
maxLength: 200, |
|||
nullable: true, |
|||
comment: "DICOM文件路径", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(200)", |
|||
oldMaxLength: 200, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "check_result", |
|||
table: "register_check_pacs", |
|||
type: "character varying(500)", |
|||
maxLength: 500, |
|||
nullable: true, |
|||
comment: "检查结果", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(500)", |
|||
oldMaxLength: 500, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "check_desc", |
|||
table: "register_check_pacs", |
|||
type: "character varying(500)", |
|||
maxLength: 500, |
|||
nullable: true, |
|||
comment: "检查描述", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(500)", |
|||
oldMaxLength: 500, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "id", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: false, |
|||
comment: "检查图片编号", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "last_modifier_id", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "last_modification_time", |
|||
table: "register_check_pacs", |
|||
type: "timestamp without time zone", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "creator_id", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "parent_id", |
|||
table: "bigtext_result_type", |
|||
type: "uuid", |
|||
fixedLength: true, |
|||
nullable: true, |
|||
comment: "父编号", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldFixedLength: true, |
|||
oldComment: "父编号"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "fk_register_check_pacs_register_check", |
|||
table: "register_check_pacs", |
|||
column: "register_check_id", |
|||
principalTable: "register_check", |
|||
principalColumn: "id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "fk_register_check_pacs_picture_register_check_pacs", |
|||
table: "register_check_pacs_picture", |
|||
column: "register_check_pacs_id", |
|||
principalTable: "register_check_pacs", |
|||
principalColumn: "id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "fk_register_check_pacs_register_check", |
|||
table: "register_check_pacs"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "fk_register_check_pacs_picture_register_check_pacs", |
|||
table: "register_check_pacs_picture"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "id", |
|||
table: "register_check_pacs_picture", |
|||
newName: "Id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "last_modifier_id", |
|||
table: "register_check_pacs_picture", |
|||
newName: "LastModifierId"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "last_modification_time", |
|||
table: "register_check_pacs_picture", |
|||
newName: "LastModificationTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "creator_id", |
|||
table: "register_check_pacs_picture", |
|||
newName: "CreatorId"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "creation_time", |
|||
table: "register_check_pacs_picture", |
|||
newName: "CreationTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "concurrency_stamp", |
|||
table: "register_check_pacs_picture", |
|||
newName: "ConcurrencyStamp"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "id", |
|||
table: "register_check_pacs", |
|||
newName: "Id"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "last_modifier_id", |
|||
table: "register_check_pacs", |
|||
newName: "LastModifierId"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "last_modification_time", |
|||
table: "register_check_pacs", |
|||
newName: "LastModificationTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "creator_id", |
|||
table: "register_check_pacs", |
|||
newName: "CreatorId"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "creation_time", |
|||
table: "register_check_pacs", |
|||
newName: "CreationTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "concurrency_stamp", |
|||
table: "register_check_pacs", |
|||
newName: "ConcurrencyStamp"); |
|||
|
|||
migrationBuilder.AlterTable( |
|||
name: "register_check_pacs_picture", |
|||
oldComment: "pacs检查信息图片"); |
|||
|
|||
migrationBuilder.AlterTable( |
|||
name: "register_check_pacs", |
|||
oldComment: "pacs检查信息主表"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "register_check_pacs_id", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldComment: "pacs检查信息主表id"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "picture_path_name", |
|||
table: "register_check_pacs_picture", |
|||
type: "character varying(200)", |
|||
maxLength: 200, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(200)", |
|||
oldMaxLength: 200, |
|||
oldNullable: true, |
|||
oldComment: "图片文件"); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "display_order", |
|||
table: "register_check_pacs_picture", |
|||
type: "integer", |
|||
nullable: false, |
|||
oldClrType: typeof(int), |
|||
oldType: "integer", |
|||
oldDefaultValueSql: "1", |
|||
oldComment: "显示顺序"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "display_name", |
|||
table: "register_check_pacs_picture", |
|||
type: "character varying(100)", |
|||
maxLength: 100, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(100)", |
|||
oldMaxLength: 100, |
|||
oldNullable: true, |
|||
oldComment: "图片名称"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "Id", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldComment: "检查图片编号"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "LastModifierId", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "LastModificationTime", |
|||
table: "register_check_pacs_picture", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "CreatorId", |
|||
table: "register_check_pacs_picture", |
|||
type: "uuid", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "register_check_id", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldComment: "登记流水号"); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "display_order", |
|||
table: "register_check_pacs", |
|||
type: "integer", |
|||
nullable: false, |
|||
oldClrType: typeof(int), |
|||
oldType: "integer", |
|||
oldDefaultValueSql: "1", |
|||
oldComment: "显示顺序"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "dicom_path_name", |
|||
table: "register_check_pacs", |
|||
type: "character varying(200)", |
|||
maxLength: 200, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(200)", |
|||
oldMaxLength: 200, |
|||
oldNullable: true, |
|||
oldComment: "DICOM文件路径"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "check_result", |
|||
table: "register_check_pacs", |
|||
type: "character varying(500)", |
|||
maxLength: 500, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(500)", |
|||
oldMaxLength: 500, |
|||
oldNullable: true, |
|||
oldComment: "检查结果"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "check_desc", |
|||
table: "register_check_pacs", |
|||
type: "character varying(500)", |
|||
maxLength: 500, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(500)", |
|||
oldMaxLength: 500, |
|||
oldNullable: true, |
|||
oldComment: "检查描述"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "Id", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldComment: "检查图片编号"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "LastModifierId", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "LastModificationTime", |
|||
table: "register_check_pacs", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "CreatorId", |
|||
table: "register_check_pacs", |
|||
type: "uuid", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "parent_id", |
|||
table: "bigtext_result_type", |
|||
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.AddForeignKey( |
|||
name: "FK_register_check_pacs_register_check_register_check_id", |
|||
table: "register_check_pacs", |
|||
column: "register_check_id", |
|||
principalTable: "register_check", |
|||
principalColumn: "id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_register_check_pacs_picture_register_check_pacs_register_ch~", |
|||
table: "register_check_pacs_picture", |
|||
column: "register_check_pacs_id", |
|||
principalTable: "register_check_pacs", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue