62 lines
1.9 KiB
C#
62 lines
1.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class iqcNextTask : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsIQCAutoNextTask",
|
|
table: "Trial",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsIQCAutoTaskDistinguishType",
|
|
table: "Trial",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_DicomSeries_SubjectVisitId",
|
|
table: "DicomSeries",
|
|
column: "SubjectVisitId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_DicomSeries_SubjectVisit_SubjectVisitId",
|
|
table: "DicomSeries",
|
|
column: "SubjectVisitId",
|
|
principalTable: "SubjectVisit",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_DicomSeries_SubjectVisit_SubjectVisitId",
|
|
table: "DicomSeries");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_DicomSeries_SubjectVisitId",
|
|
table: "DicomSeries");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsIQCAutoNextTask",
|
|
table: "Trial");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsIQCAutoTaskDistinguishType",
|
|
table: "Trial");
|
|
}
|
|
}
|
|
}
|