7 changed files with 16247 additions and 28 deletions
-
8src/Shentun.Peis.Application.Contracts/PacsBusiness/GetPacsDicomServiceDataByPatientRegisterIdDto.cs
-
8src/Shentun.Peis.Application.Contracts/PacsBusiness/ImportPacsDicomServiceDataInputDto.cs
-
8src/Shentun.Peis.Application/PacsBusiness/PacsBusinessAppService.cs
-
8src/Shentun.Peis.Domain/DicomFileDetails/DicomFileDetail.cs
-
16063src/Shentun.Peis.EntityFrameworkCore/Migrations/20241028083934_update_third_book_position.Designer.cs
-
142src/Shentun.Peis.EntityFrameworkCore/Migrations/20241028083934_update_third_book_position.cs
-
38src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
16063
src/Shentun.Peis.EntityFrameworkCore/Migrations/20241028083934_update_third_book_position.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,142 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class update_third_book_position : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "marital_status_name", |
||||
|
table: "third_booking"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "emp_status", |
||||
|
table: "third_booking", |
||||
|
type: "character varying(1)", |
||||
|
maxLength: 1, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "marital_status", |
||||
|
table: "third_booking", |
||||
|
type: "character varying(1)", |
||||
|
maxLength: 1, |
||||
|
nullable: true, |
||||
|
comment: "婚姻状况"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "position_name", |
||||
|
table: "third_booking", |
||||
|
type: "character varying(100)", |
||||
|
maxLength: 100, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "parent_study_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "text", |
||||
|
nullable: false, |
||||
|
comment: "研究ID", |
||||
|
oldClrType: typeof(Guid), |
||||
|
oldType: "uuid", |
||||
|
oldComment: "研究ID"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "parent_series_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "text", |
||||
|
nullable: false, |
||||
|
comment: "系列ID", |
||||
|
oldClrType: typeof(Guid), |
||||
|
oldType: "uuid", |
||||
|
oldComment: "系列ID"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "parent_patient_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "text", |
||||
|
nullable: false, |
||||
|
comment: "患者ID", |
||||
|
oldClrType: typeof(Guid), |
||||
|
oldType: "uuid", |
||||
|
oldComment: "患者ID"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "instance_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "text", |
||||
|
nullable: false, |
||||
|
comment: "实例ID", |
||||
|
oldClrType: typeof(Guid), |
||||
|
oldType: "uuid", |
||||
|
oldComment: "实例ID"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "emp_status", |
||||
|
table: "third_booking"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "marital_status", |
||||
|
table: "third_booking"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "position_name", |
||||
|
table: "third_booking"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "marital_status_name", |
||||
|
table: "third_booking", |
||||
|
type: "character varying(20)", |
||||
|
maxLength: 20, |
||||
|
nullable: true, |
||||
|
comment: "婚姻状况"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<Guid>( |
||||
|
name: "parent_study_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "uuid", |
||||
|
nullable: false, |
||||
|
comment: "研究ID", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "text", |
||||
|
oldComment: "研究ID"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<Guid>( |
||||
|
name: "parent_series_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "uuid", |
||||
|
nullable: false, |
||||
|
comment: "系列ID", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "text", |
||||
|
oldComment: "系列ID"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<Guid>( |
||||
|
name: "parent_patient_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "uuid", |
||||
|
nullable: false, |
||||
|
comment: "患者ID", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "text", |
||||
|
oldComment: "患者ID"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<Guid>( |
||||
|
name: "instance_id", |
||||
|
table: "dicom_file_detail", |
||||
|
type: "uuid", |
||||
|
nullable: false, |
||||
|
comment: "实例ID", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "text", |
||||
|
oldComment: "实例ID"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue