42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BLAIzor.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class CollectionAdministrationUpdateFIX : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_MenuItems_ContentGroups_ContentGroupId",
|
|
table: "MenuItems");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_MenuItems_ContentGroups_ContentGroupId",
|
|
table: "MenuItems",
|
|
column: "ContentGroupId",
|
|
principalTable: "ContentGroups",
|
|
principalColumn: "Id");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_MenuItems_ContentGroups_ContentGroupId",
|
|
table: "MenuItems");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_MenuItems_ContentGroups_ContentGroupId",
|
|
table: "MenuItems",
|
|
column: "ContentGroupId",
|
|
principalTable: "ContentGroups",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.NoAction);
|
|
}
|
|
}
|
|
}
|