40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class FristAddTaskNum1 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_ReadingTableAnswerRowInfo_FristAddTaskId",
|
|
table: "ReadingTableAnswerRowInfo",
|
|
column: "FristAddTaskId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_ReadingTableAnswerRowInfo_VisitTask_FristAddTaskId",
|
|
table: "ReadingTableAnswerRowInfo",
|
|
column: "FristAddTaskId",
|
|
principalTable: "VisitTask",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_ReadingTableAnswerRowInfo_VisitTask_FristAddTaskId",
|
|
table: "ReadingTableAnswerRowInfo");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_ReadingTableAnswerRowInfo_FristAddTaskId",
|
|
table: "ReadingTableAnswerRowInfo");
|
|
}
|
|
}
|
|
}
|