using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
///
public partial class IsImageQualityControl : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "IsImageQualityControl",
table: "Trial",
type: "bit",
nullable: true);
migrationBuilder.AddForeignKey(
name: "FK_TaskInstance_Subject_SubjectId",
table: "TaskInstance",
column: "SubjectId",
principalTable: "Subject",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TaskInstance_Subject_SubjectId",
table: "TaskInstance");
migrationBuilder.DropColumn(
name: "IsImageQualityControl",
table: "Trial");
}
}
}