using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ManagerService.Migrations
{
///
public partial class RemoveGuidedPathSectionMapRelation : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_GuidedPaths_Sections_SectionMapId",
table: "GuidedPaths");
migrationBuilder.DropIndex(
name: "IX_GuidedPaths_SectionMapId",
table: "GuidedPaths");
migrationBuilder.DropColumn(
name: "SectionMapId",
table: "GuidedPaths");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "SectionMapId",
table: "GuidedPaths",
type: "text",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_GuidedPaths_SectionMapId",
table: "GuidedPaths",
column: "SectionMapId");
migrationBuilder.AddForeignKey(
name: "FK_GuidedPaths_Sections_SectionMapId",
table: "GuidedPaths",
column: "SectionMapId",
principalTable: "Sections",
principalColumn: "Id");
}
}
}