Files
irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20260128080433_IsImageQualityControl.cs
T
he 1181540302
continuous-integration/drone/push Build is passing
添加IsImageQualityControl
2026-01-28 16:08:18 +08:00

41 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class IsImageQualityControl : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
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);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TaskInstance_Subject_SubjectId",
table: "TaskInstance");
migrationBuilder.DropColumn(
name: "IsImageQualityControl",
table: "Trial");
}
}
}