删除部分迁移文件
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2c72dc000f
commit
f549d1fca9
|
@ -17369,7 +17369,7 @@
|
|||
<summary>
|
||||
PM 审核CRC IQC 申请影像回退
|
||||
</summary>
|
||||
<param name="subjectVisitId"></param>
|
||||
<param name="iamgeBackRecordId"></param>
|
||||
<param name="isAgree"></param>
|
||||
<returns></returns>
|
||||
<exception cref="T:IRaCIS.Core.Infrastructure.BusinessValidationFailedException"></exception>
|
||||
|
|
|
@ -2552,7 +2552,6 @@ public class VisitTaskService(IRepository<VisitTask> _visitTaskRepository,
|
|||
|
||||
//回退后,回退状态恢复
|
||||
sv.RequestBackState = RequestBackStateEnum.NotRequest;
|
||||
sv.ImageBackState = ImageBackStateEnum.None;
|
||||
sv.IsCheckBack = false;
|
||||
sv.CheckBackTime = null;
|
||||
sv.CheckState = CheckStateEnum.None;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,73 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrialModifyField : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "BodyPartTypes",
|
||||
table: "Trial",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<DateOnly>(
|
||||
name: "EndDate",
|
||||
table: "Education",
|
||||
type: "date",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime2",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<DateOnly>(
|
||||
name: "BeginDate",
|
||||
table: "Education",
|
||||
type: "date",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime2",
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "BodyPartTypes",
|
||||
table: "Trial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "EndDate",
|
||||
table: "Education",
|
||||
type: "datetime2",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateOnly),
|
||||
oldType: "date",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "BeginDate",
|
||||
table: "Education",
|
||||
type: "datetime2",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateOnly),
|
||||
oldType: "date",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,153 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class EventStore : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId",
|
||||
table: "ReadingTableAnswerRowInfo");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeResultTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "裁判结果的任务ID(访视或者全局)",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "裁判结果的任务ID");
|
||||
|
||||
migrationBuilder.AddUniqueConstraint(
|
||||
name: "AK_DicomInstance_Id",
|
||||
table: "DicomInstance",
|
||||
column: "Id");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "EventStoreRecord",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
EventType = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
EventData = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
EventState = table.Column<int>(type: "int", nullable: false),
|
||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_EventStoreRecord", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_EventStoreRecord_User_CreateUserId",
|
||||
column: x => x.CreateUserId,
|
||||
principalTable: "User",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
},
|
||||
comment: "记录触发的事件,以及状态,从而方便重试操作");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_EventStoreRecord_CreateUserId",
|
||||
table: "EventStoreRecord",
|
||||
column: "CreateUserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId",
|
||||
table: "ReadingTableAnswerRowInfo",
|
||||
column: "InstanceId",
|
||||
principalTable: "DicomInstance",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter",
|
||||
column: "SeriesId",
|
||||
principalTable: "DicomSeries",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter",
|
||||
column: "StudyId",
|
||||
principalTable: "DicomStudy",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId",
|
||||
table: "ReadingTableAnswerRowInfo");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "EventStoreRecord");
|
||||
|
||||
migrationBuilder.DropUniqueConstraint(
|
||||
name: "AK_DicomInstance_Id",
|
||||
table: "DicomInstance");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeResultTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "裁判结果的任务ID",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "裁判结果的任务ID(访视或者全局)");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId",
|
||||
table: "ReadingTableAnswerRowInfo",
|
||||
column: "InstanceId",
|
||||
principalTable: "DicomInstance",
|
||||
principalColumn: "SeqId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter",
|
||||
column: "SeriesId",
|
||||
principalTable: "DicomSeries",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId",
|
||||
table: "SubjectCriteriaEvaluationVisitStudyFilter",
|
||||
column: "StudyId",
|
||||
principalTable: "DicomStudy",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,30 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrialImageDownloadAddSubejctId : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "SubjectId",
|
||||
table: "TrialImageDownload",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SubjectId",
|
||||
table: "TrialImageDownload");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,52 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class DownloadAddTrialSiteCode : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TrialSiteCode",
|
||||
table: "TrialImageDownload",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "一致性分析的就显示一致性分析的中心");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialImageDownload_SubjectId",
|
||||
table: "TrialImageDownload",
|
||||
column: "SubjectId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TrialImageDownload_Subject_SubjectId",
|
||||
table: "TrialImageDownload",
|
||||
column: "SubjectId",
|
||||
principalTable: "Subject",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TrialImageDownload_Subject_SubjectId",
|
||||
table: "TrialImageDownload");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TrialImageDownload_SubjectId",
|
||||
table: "TrialImageDownload");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialSiteCode",
|
||||
table: "TrialImageDownload");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,53 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddEventTypeName : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "EventType",
|
||||
table: "EventStoreRecord",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
comment: "完整的事件类型名",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EventTypeName",
|
||||
table: "EventStoreRecord",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "简单的事件类型名");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EventTypeName",
|
||||
table: "EventStoreRecord");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "EventType",
|
||||
table: "EventStoreRecord",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400,
|
||||
oldComment: "完整的事件类型名");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,36 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UserFeedBackLength : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "ScreenshotListStr",
|
||||
table: "UserFeedBack",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "ScreenshotListStr",
|
||||
table: "UserFeedBack",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,143 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Question : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Remark",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
comment: "注释",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClassifyAlgorithms",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "分类算法");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ClassifyTableQuestionId",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "分类问题表格Id");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Remark",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
comment: "备注",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsCopy",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "复制病灶的时候 是否复制这个问题");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出标识");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出结果");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出标识");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出结果");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyAlgorithms",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyTableQuestionId",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsCopy",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionSystem");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Remark",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400,
|
||||
oldComment: "注释");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Remark",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400,
|
||||
oldComment: "备注");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,66 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class init : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionSystem");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "[]",
|
||||
comment: "导出结果");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "[]",
|
||||
comment: "导出结果");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingQuestionSystem");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出结果");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportResult",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出结果");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,43 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class questionc : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClassifyAlgorithms",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "分类算法");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ClassifyQuestionId",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "分类问题Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyAlgorithms",
|
||||
table: "ReadingQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyQuestionId",
|
||||
table: "ReadingQuestionSystem");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,43 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class question1 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClassifyAlgorithms",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "分类算法");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ClassifyTableQuestionId",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "分类问题表格Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyAlgorithms",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyTableQuestionId",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,40 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class EmailModify : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EmailDelaySeconds",
|
||||
table: "TrialEmailNoticeConfig",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EmailDelaySeconds",
|
||||
table: "EmailNoticeConfig",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "邮件延时秒数,比如一个事件触发,延迟多少s后才发邮件");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EmailDelaySeconds",
|
||||
table: "TrialEmailNoticeConfig");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EmailDelaySeconds",
|
||||
table: "EmailNoticeConfig");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,42 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class DoctorInfo : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "WorkPartTime",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "WorkPartTimeEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WorkPartTime",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WorkPartTimeEn",
|
||||
table: "Doctor");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,102 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctorinfo10221319 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BankName",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BankNum",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BankPhoneNum",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "IdCard",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OpeningBank",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Summarize",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "SummarizeEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BankName",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BankNum",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BankPhoneNum",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdCard",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OpeningBank",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Summarize",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SummarizeEn",
|
||||
table: "Doctor");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,65 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctorinfo10221525 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OtherCriterion",
|
||||
table: "TrialExperience",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OtherStages",
|
||||
table: "TrialExperience",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "GCPAgencies",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "GCPTime",
|
||||
table: "Doctor",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OtherCriterion",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OtherStages",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "GCPAgencies",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "GCPTime",
|
||||
table: "Doctor");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,66 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tablequestion10221643 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出标识");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "[]",
|
||||
comment: "导出结果");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "导出标识");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "[]",
|
||||
comment: "导出结果");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportIdentification",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExportResultStr",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,40 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class iamgeandQuestion : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ImageCount",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "图片数量");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ImageCount",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "图片数量");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ImageCount",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ImageCount",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,30 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctorfile : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsIRUpload",
|
||||
table: "DoctorCriterionFile",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否是IR上传");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsIRUpload",
|
||||
table: "DoctorCriterionFile");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,62 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class question202410240915 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "分类类型");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "分类类型");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "分类类型");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "分类类型");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyType",
|
||||
table: "ReadingQuestionSystem");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,95 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSysDocSignType : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeVisitTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "在访视或者全局任务上记录 裁判任务的Id",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "裁判任务的Id");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeResultTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "裁判结果的任务ID(访视或者全局)");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "DocUserSignType",
|
||||
table: "SystemDocument",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ReadingTableQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
column: "ReadingQuestionId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
column: "ReadingQuestionId",
|
||||
principalTable: "ReadingQuestionSystem",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_ReadingTableQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DocUserSignType",
|
||||
table: "SystemDocument");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeVisitTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "裁判任务的Id",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "在访视或者全局任务上记录 裁判任务的Id");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeResultTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "裁判结果的任务ID(访视或者全局)",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,94 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Hospitalid : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeVisitTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "在访视或者全局任务上记录 裁判任务的Id",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "裁判任务的Id");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeResultTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "裁判结果的任务ID(访视或者全局)");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "HospitalId",
|
||||
table: "Postgraduate",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ReadingTableQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
column: "ReadingQuestionId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
column: "ReadingQuestionId",
|
||||
principalTable: "ReadingQuestionSystem",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_ReadingTableQuestionSystem_ReadingQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_ReadingTableQuestionSystem_ReadingQuestionId",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HospitalId",
|
||||
table: "Postgraduate");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeVisitTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "裁判任务的Id",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "在访视或者全局任务上记录 裁判任务的Id");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "JudgeResultTaskId",
|
||||
table: "VisitTask",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "裁判结果的任务ID(访视或者全局)",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "在裁判任务上记录 裁判结果的任务ID(访视或者全局)");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,85 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctorinfo10291357 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CriterionType",
|
||||
table: "TrialExperience",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ExperienceDataType",
|
||||
table: "TrialExperience",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "IndicationEnum",
|
||||
table: "TrialExperience",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TrialId",
|
||||
table: "TrialExperience",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "DoctorId",
|
||||
table: "Doctor",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TrialId",
|
||||
table: "Doctor",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CriterionType",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExperienceDataType",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IndicationEnum",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialId",
|
||||
table: "TrialExperience");
|
||||
|
||||
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DoctorId",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialId",
|
||||
table: "Doctor");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,50 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class IndicationTypeId : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "IndicationTypeId",
|
||||
table: "TrialExperience",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialExperience_TrialId",
|
||||
table: "TrialExperience",
|
||||
column: "TrialId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TrialExperience_Trial_TrialId",
|
||||
table: "TrialExperience",
|
||||
column: "TrialId",
|
||||
principalTable: "Trial",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TrialExperience_Trial_TrialId",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TrialExperience_TrialId",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IndicationTypeId",
|
||||
table: "TrialExperience");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,98 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class classify : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingTableQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingTableQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingQuestionSystem",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingTableQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingTableQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingQuestionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyEditType",
|
||||
table: "ReadingQuestionSystem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClassifyShowType",
|
||||
table: "ReadingQuestionSystem");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,30 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class VisitTaskExpetiedTime : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ExpetidEmailNoticeTime",
|
||||
table: "VisitTask",
|
||||
type: "datetime2",
|
||||
nullable: true,
|
||||
comment: "通知IR加急阅片时间");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ExpetidEmailNoticeTime",
|
||||
table: "VisitTask");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,70 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UserSoftDelete : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "OptUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "被操作的人,自己操作的就是自己",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "DeleteUserId",
|
||||
table: "User",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DeletedTime",
|
||||
table: "User",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsDeleted",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DeleteUserId",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DeletedTime",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsDeleted",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "OptUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "被操作的人,自己操作的就是自己");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,31 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrialConfigAddTrialName : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TrialObjectNameConfigStr",
|
||||
table: "Trial",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "项目术语配置Json字符串");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialObjectNameConfigStr",
|
||||
table: "Trial");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,53 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TestEfcoreJson : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DateTimeList",
|
||||
table: "TestLength",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "[]");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StringList",
|
||||
table: "TestLength",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: false,
|
||||
defaultValue: "[]");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TestEnumList",
|
||||
table: "TestLength",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: false,
|
||||
defaultValue: "[]");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DateTimeList",
|
||||
table: "TestLength");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StringList",
|
||||
table: "TestLength");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TestEnumList",
|
||||
table: "TestLength");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,29 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TestJsonObject : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TestJsonObjectLsit",
|
||||
table: "TestLength",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TestJsonObjectLsit",
|
||||
table: "TestLength");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,44 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrialJson : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialObjectNameConfigStr",
|
||||
table: "Trial");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TrialObjectNameList",
|
||||
table: "Trial",
|
||||
type: "nvarchar(2000)",
|
||||
maxLength: 2000,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "项目术语配置Json字符串");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialObjectNameList",
|
||||
table: "Trial");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TrialObjectNameConfigStr",
|
||||
table: "Trial",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "项目术语配置Json字符串");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,210 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctor : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DeleteUserId",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DeletedTime",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsDeleted",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "TrialObjectNameList",
|
||||
table: "Trial",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(2000)",
|
||||
oldMaxLength: 2000,
|
||||
oldComment: "项目术语配置Json字符串");
|
||||
|
||||
migrationBuilder.AddColumn<DateOnly>(
|
||||
name: "TestDate",
|
||||
table: "TestLength",
|
||||
type: "date",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SummarizeEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Summarize",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SubspecialityOtherCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SubspecialityOther",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SpecialityOtherCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SpecialityOther",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Postgraduate_HospitalId",
|
||||
table: "Postgraduate",
|
||||
column: "HospitalId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Postgraduate_Hospital_HospitalId",
|
||||
table: "Postgraduate",
|
||||
column: "HospitalId",
|
||||
principalTable: "Hospital",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Postgraduate_Hospital_HospitalId",
|
||||
table: "Postgraduate");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Postgraduate_HospitalId",
|
||||
table: "Postgraduate");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TestDate",
|
||||
table: "TestLength");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "DeleteUserId",
|
||||
table: "User",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DeletedTime",
|
||||
table: "User",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsDeleted",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "TrialObjectNameList",
|
||||
table: "Trial",
|
||||
type: "nvarchar(2000)",
|
||||
maxLength: 2000,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "项目术语配置Json字符串",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SummarizeEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Summarize",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SubspecialityOtherCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SubspecialityOther",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SpecialityOtherCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SpecialityOther",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,56 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctors : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DoctorSummarize",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
DoctorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Summarize = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
SummarizeEn = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
IsMain = table.Column<bool>(type: "bit", nullable: false),
|
||||
Indication = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
IndicationEn = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DoctorSummarize", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_DoctorSummarize_User_CreateUserId",
|
||||
column: x => x.CreateUserId,
|
||||
principalTable: "User",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
},
|
||||
comment: "医生 - 概述");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DoctorSummarize_CreateUserId",
|
||||
table: "DoctorSummarize",
|
||||
column: "CreateUserId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "DoctorSummarize");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,54 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class WorkPartTime : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "WorkPartTimeEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "WorkPartTime",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "WorkPartTimeEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "WorkPartTime",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,92 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class trialExperience : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAddTrialExperienceToTrial",
|
||||
table: "Doctor",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PreviousSurgery_ClinicalDataTrialSetId",
|
||||
table: "PreviousSurgery",
|
||||
column: "ClinicalDataTrialSetId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PreviousOther_ClinicalDataTrialSetId",
|
||||
table: "PreviousOther",
|
||||
column: "ClinicalDataTrialSetId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PreviousHistory_ClinicalDataTrialSetId",
|
||||
table: "PreviousHistory",
|
||||
column: "ClinicalDataTrialSetId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PreviousHistory_ClinicalDataTrialSet_ClinicalDataTrialSetId",
|
||||
table: "PreviousHistory",
|
||||
column: "ClinicalDataTrialSetId",
|
||||
principalTable: "ClinicalDataTrialSet",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PreviousOther_ClinicalDataTrialSet_ClinicalDataTrialSetId",
|
||||
table: "PreviousOther",
|
||||
column: "ClinicalDataTrialSetId",
|
||||
principalTable: "ClinicalDataTrialSet",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PreviousSurgery_ClinicalDataTrialSet_ClinicalDataTrialSetId",
|
||||
table: "PreviousSurgery",
|
||||
column: "ClinicalDataTrialSetId",
|
||||
principalTable: "ClinicalDataTrialSet",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PreviousHistory_ClinicalDataTrialSet_ClinicalDataTrialSetId",
|
||||
table: "PreviousHistory");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PreviousOther_ClinicalDataTrialSet_ClinicalDataTrialSetId",
|
||||
table: "PreviousOther");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PreviousSurgery_ClinicalDataTrialSet_ClinicalDataTrialSetId",
|
||||
table: "PreviousSurgery");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PreviousSurgery_ClinicalDataTrialSetId",
|
||||
table: "PreviousSurgery");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PreviousOther_ClinicalDataTrialSetId",
|
||||
table: "PreviousOther");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PreviousHistory_ClinicalDataTrialSetId",
|
||||
table: "PreviousHistory");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsAddTrialExperienceToTrial",
|
||||
table: "Doctor");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,54 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class MaxLength : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "GCPAgencies",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "BankName",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "GCPAgencies",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "BankName",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,29 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctorino : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsAddTrialExperienceToTrial",
|
||||
table: "Doctor");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAddTrialExperienceToTrial",
|
||||
table: "Doctor",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,90 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SPMConfig : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_DicomInstance_DicomStudy_StudyId",
|
||||
table: "DicomInstance");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CollectImagesEnum",
|
||||
table: "Trial",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "阅片任务产生之前 采集影像");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsSPMJoinReReadingApproval",
|
||||
table: "Trial",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: true,
|
||||
comment: "SPM 参与重阅审批");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsSPMJoinReviewerSelect",
|
||||
table: "Trial",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: true,
|
||||
comment: "SPM 参与阅片人筛选");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsSPMJoinSiteSurvey",
|
||||
table: "Trial",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: true,
|
||||
comment: "SPM 参与中心调研");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_DicomInstance_DicomStudy_StudyId",
|
||||
table: "DicomInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "DicomStudy",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_DicomInstance_DicomStudy_StudyId",
|
||||
table: "DicomInstance");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CollectImagesEnum",
|
||||
table: "Trial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsSPMJoinReReadingApproval",
|
||||
table: "Trial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsSPMJoinReviewerSelect",
|
||||
table: "Trial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsSPMJoinSiteSurvey",
|
||||
table: "Trial");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_DicomInstance_DicomStudy_StudyId",
|
||||
table: "DicomInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "DicomStudy",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,29 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Hospital : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsConfirm",
|
||||
table: "Hospital",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsConfirm",
|
||||
table: "Hospital");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,149 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class DoctorHospital : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsConfirm",
|
||||
table: "Hospital");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "City",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CityCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HospitalCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HospitalEn",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "University",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "UniversityCN",
|
||||
table: "Doctor",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "SCPStudy",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "TaskStudy",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "City",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CityCN",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HospitalCN",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HospitalEn",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "University",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "UniversityCN",
|
||||
table: "Doctor");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsConfirm",
|
||||
table: "Hospital",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "SCPStudy",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "TaskStudy",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,38 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Doctord : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "HospitalEn",
|
||||
table: "Doctor",
|
||||
newName: "HospitalNameCN");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "HospitalCN",
|
||||
table: "Doctor",
|
||||
newName: "HospitalName");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "HospitalNameCN",
|
||||
table: "Doctor",
|
||||
newName: "HospitalEn");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "HospitalName",
|
||||
table: "Doctor",
|
||||
newName: "HospitalCN");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,38 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class doctorf : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UniversityCN",
|
||||
table: "Doctor",
|
||||
newName: "UniversityAffiliatedCN");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "University",
|
||||
table: "Doctor",
|
||||
newName: "UniversityAffiliated");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UniversityAffiliatedCN",
|
||||
table: "Doctor",
|
||||
newName: "UniversityCN");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UniversityAffiliated",
|
||||
table: "Doctor",
|
||||
newName: "University");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,112 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UserModify : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "IdentityUserId",
|
||||
table: "UserPassWordLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "IdentityUserId",
|
||||
table: "User",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsMutiAccountInfoConfirm",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "多账号信息是否已经确认");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsUserRoleDisabled",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "SCPStudy",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "TaskStudy",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdentityUserId",
|
||||
table: "UserPassWordLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdentityUserId",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsMutiAccountInfoConfirm",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsUserRoleDisabled",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_SCPInstance_SCPStudy_StudyId",
|
||||
table: "SCPInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "SCPStudy",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||
table: "TaskInstance",
|
||||
column: "StudyId",
|
||||
principalTable: "TaskStudy",
|
||||
principalColumn: "SeqId",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,49 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tablemark : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RowId",
|
||||
table: "ReadingTaskQuestionMark",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RowIndex",
|
||||
table: "ReadingTaskQuestionMark",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TableQuestionId",
|
||||
table: "ReadingTaskQuestionMark",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RowId",
|
||||
table: "ReadingTaskQuestionMark");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RowIndex",
|
||||
table: "ReadingTaskQuestionMark");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TableQuestionId",
|
||||
table: "ReadingTaskQuestionMark");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,41 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tablemarkc : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<decimal>(
|
||||
name: "RowIndex",
|
||||
table: "ReadingTaskQuestionMark",
|
||||
type: "decimal(18,2)",
|
||||
precision: 18,
|
||||
scale: 2,
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "RowIndex",
|
||||
table: "ReadingTaskQuestionMark",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(decimal),
|
||||
oldType: "decimal(18,2)",
|
||||
oldPrecision: 18,
|
||||
oldScale: 2,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,132 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddIdentityUser : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsMutiAccountInfoConfirm",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.AlterTable(
|
||||
name: "User",
|
||||
comment: "后台 - 系统账户角色关系表",
|
||||
oldComment: "后台 - 系统账户");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "SuperAdmin",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
comment: "后续删除",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "IdentityUser",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Code = table.Column<int>(type: "int", nullable: false),
|
||||
UserCode = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
UserName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
EMail = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
EmailToken = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||
FirstName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
LastName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
Password = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
PasswordChanged = table.Column<bool>(type: "bit", nullable: false),
|
||||
Phone = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
Sex = table.Column<int>(type: "int", nullable: true),
|
||||
Status = table.Column<int>(type: "int", nullable: false),
|
||||
OrganizationName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
PositionName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
AutoCutNextTask = table.Column<bool>(type: "bit", nullable: false, comment: "自动切换下一个任务"),
|
||||
DepartmentName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
IsFirstAdd = table.Column<bool>(type: "bit", nullable: false, comment: "首次登录需要修改密码"),
|
||||
IsTestUser = table.Column<bool>(type: "bit", nullable: false),
|
||||
IsZhiZhun = table.Column<bool>(type: "bit", nullable: false, comment: "内部用户 外部用户"),
|
||||
LastChangePassWordTime = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "上一次修改密码的时间"),
|
||||
LastLoginIP = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
LastLoginTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_IdentityUser", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_IdentityUser_User_CreateUserId",
|
||||
column: x => x.CreateUserId,
|
||||
principalTable: "User",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
},
|
||||
comment: "后台 - 系统真实账户表");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_User_IdentityUserId",
|
||||
table: "User",
|
||||
column: "IdentityUserId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_IdentityUser_CreateUserId",
|
||||
table: "IdentityUser",
|
||||
column: "CreateUserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_User_IdentityUser_IdentityUserId",
|
||||
table: "User",
|
||||
column: "IdentityUserId",
|
||||
principalTable: "IdentityUser",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_User_IdentityUser_IdentityUserId",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "IdentityUser");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_User_IdentityUserId",
|
||||
table: "User");
|
||||
|
||||
migrationBuilder.AlterTable(
|
||||
name: "User",
|
||||
comment: "后台 - 系统账户",
|
||||
oldComment: "后台 - 系统账户角色关系表");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "SuperAdmin",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldComment: "后续删除");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsMutiAccountInfoConfirm",
|
||||
table: "User",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "多账号信息是否已经确认");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,88 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrialIdentityUser : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterTable(
|
||||
name: "TrialUser",
|
||||
comment: "项目用户角色表",
|
||||
oldComment: "运维人员与项目关联关系表 - 实体");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TrialIdentityUser",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IdentityUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RemoveTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
JoinTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TrialIdentityUser", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_TrialIdentityUser_IdentityUser_IdentityUserId",
|
||||
column: x => x.IdentityUserId,
|
||||
principalTable: "IdentityUser",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_TrialIdentityUser_Trial_TrialId",
|
||||
column: x => x.TrialId,
|
||||
principalTable: "Trial",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_TrialIdentityUser_User_CreateUserId",
|
||||
column: x => x.CreateUserId,
|
||||
principalTable: "User",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
},
|
||||
comment: "项目用户表");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialIdentityUser_CreateUserId",
|
||||
table: "TrialIdentityUser",
|
||||
column: "CreateUserId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialIdentityUser_IdentityUserId",
|
||||
table: "TrialIdentityUser",
|
||||
column: "IdentityUserId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialIdentityUser_TrialId",
|
||||
table: "TrialIdentityUser",
|
||||
column: "TrialId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "TrialIdentityUser");
|
||||
|
||||
migrationBuilder.AlterTable(
|
||||
name: "TrialUser",
|
||||
comment: "运维人员与项目关联关系表 - 实体",
|
||||
oldComment: "项目用户角色表");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,61 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrialSiteUserRoleModify : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterTable(
|
||||
name: "TrialSiteUser",
|
||||
comment: "项目 - 项目中心用户角色关系表",
|
||||
oldComment: "项目 - 项目中心用户关系表");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TrialUserId",
|
||||
table: "TrialUser",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialUser_TrialUserId",
|
||||
table: "TrialUser",
|
||||
column: "TrialUserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TrialUser_TrialIdentityUser_TrialUserId",
|
||||
table: "TrialUser",
|
||||
column: "TrialUserId",
|
||||
principalTable: "TrialIdentityUser",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TrialUser_TrialIdentityUser_TrialUserId",
|
||||
table: "TrialUser");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TrialUser_TrialUserId",
|
||||
table: "TrialUser");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrialUserId",
|
||||
table: "TrialUser");
|
||||
|
||||
migrationBuilder.AlterTable(
|
||||
name: "TrialSiteUser",
|
||||
comment: "项目 - 项目中心用户关系表",
|
||||
oldComment: "项目 - 项目中心用户角色关系表");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,223 +0,0 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UserlogModifg7 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_UserLog_User_LoginUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_UserLog_User_OptUserId",
|
||||
table: "UserLog");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_UserLog_LoginUserId",
|
||||
// table: "UserLog");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_UserLog_OptUserId",
|
||||
// table: "UserLog");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "OptUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "被操作的人,自己操作的就是自己--后续删除",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "被操作的人,自己操作的就是自己");
|
||||
|
||||
//migrationBuilder.AlterColumn<Guid>(
|
||||
// name: "LoginUserId",
|
||||
// table: "UserLog",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true,
|
||||
// comment: "后续删除",
|
||||
// oldClrType: typeof(Guid),
|
||||
// oldType: "uniqueidentifier",
|
||||
// oldNullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ActionIdentityUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ActionUserName",
|
||||
table: "UserLog",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
//migrationBuilder.AddColumn<string>(
|
||||
// name: "JsonObj",
|
||||
// table: "UserLog",
|
||||
// type: "nvarchar(max)",
|
||||
// nullable: false,
|
||||
// defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TargetIdentityUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "被操作的对象 admin 修改张三信息 张三是被操作对象");
|
||||
|
||||
//migrationBuilder.AlterColumn<Guid>(
|
||||
// name: "SystemUserId",
|
||||
// table: "TrialSiteUserSurvey",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true,
|
||||
// comment: "IdentityUser 表的用户Id",
|
||||
// oldClrType: typeof(Guid),
|
||||
// oldType: "uniqueidentifier",
|
||||
// oldNullable: true);
|
||||
|
||||
//migrationBuilder.AlterColumn<Guid>(
|
||||
// name: "SystemUserId",
|
||||
// table: "TrialExternalUser",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: false,
|
||||
// comment: "IdentityUser 表的用户Id",
|
||||
// oldClrType: typeof(Guid),
|
||||
// oldType: "uniqueidentifier");
|
||||
|
||||
//migrationBuilder.AlterColumn<bool>(
|
||||
// name: "AutoCutNextTask",
|
||||
// table: "IdentityUser",
|
||||
// type: "bit",
|
||||
// nullable: false,
|
||||
// comment: "这个字段废除,放在用户角色上面,后续删除",
|
||||
// oldClrType: typeof(bool),
|
||||
// oldType: "bit",
|
||||
// oldComment: "自动切换下一个任务");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_UserLog_TargetIdentityUserId",
|
||||
// table: "UserLog",
|
||||
// column: "TargetIdentityUserId");
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_UserLog_IdentityUser_TargetIdentityUserId",
|
||||
// table: "UserLog",
|
||||
// column: "TargetIdentityUserId",
|
||||
// principalTable: "IdentityUser",
|
||||
// principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_UserLog_IdentityUser_TargetIdentityUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_UserLog_TargetIdentityUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ActionIdentityUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ActionUserName",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JsonObj",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TargetIdentityUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "OptUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
comment: "被操作的人,自己操作的就是自己",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "被操作的人,自己操作的就是自己--后续删除");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "LoginUserId",
|
||||
table: "UserLog",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "后续删除");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "SystemUserId",
|
||||
table: "TrialSiteUserSurvey",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true,
|
||||
oldComment: "IdentityUser 表的用户Id");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "SystemUserId",
|
||||
table: "TrialExternalUser",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldComment: "IdentityUser 表的用户Id");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "AutoCutNextTask",
|
||||
table: "IdentityUser",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
comment: "自动切换下一个任务",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "bit",
|
||||
oldComment: "这个字段废除,放在用户角色上面,后续删除");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UserLog_LoginUserId",
|
||||
table: "UserLog",
|
||||
column: "LoginUserId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UserLog_OptUserId",
|
||||
table: "UserLog",
|
||||
column: "OptUserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_UserLog_User_LoginUserId",
|
||||
table: "UserLog",
|
||||
column: "LoginUserId",
|
||||
principalTable: "User",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_UserLog_User_OptUserId",
|
||||
table: "UserLog",
|
||||
column: "OptUserId",
|
||||
principalTable: "User",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,50 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UserLogAddUserType : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ActionUserType",
|
||||
table: "UserLog",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UserLog_ActionIdentityUserId",
|
||||
table: "UserLog",
|
||||
column: "ActionIdentityUserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_UserLog_IdentityUser_ActionIdentityUserId",
|
||||
table: "UserLog",
|
||||
column: "ActionIdentityUserId",
|
||||
principalTable: "IdentityUser",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_UserLog_IdentityUser_ActionIdentityUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_UserLog_ActionIdentityUserId",
|
||||
table: "UserLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ActionUserType",
|
||||
table: "UserLog");
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue