50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class test2 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_TaskInstance_TaskStudy_TaskStudySeqId",
|
|
table: "TaskInstance");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TaskInstance_TaskStudySeqId",
|
|
table: "TaskInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TaskStudySeqId",
|
|
table: "TaskInstance");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "TaskStudySeqId",
|
|
table: "TaskInstance",
|
|
type: "uniqueidentifier",
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TaskInstance_TaskStudySeqId",
|
|
table: "TaskInstance",
|
|
column: "TaskStudySeqId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_TaskInstance_TaskStudy_TaskStudySeqId",
|
|
table: "TaskInstance",
|
|
column: "TaskStudySeqId",
|
|
principalTable: "TaskStudy",
|
|
principalColumn: "SeqId");
|
|
}
|
|
}
|
|
}
|