Files
DiunaBI/DiunaBI.Infrastructure/Migrations/20250726091001_Remove DataInbox.LayerId.cs

50 lines
1.4 KiB
C#
Raw Normal View History

2025-07-26 11:11:24 +02:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
2025-11-05 20:50:25 +01:00
namespace DiunaBI.Infrastructure.Migrations
2025-07-26 11:11:24 +02:00
{
/// <inheritdoc />
public partial class RemoveDataInboxLayerId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Layers_Layers_ParentId",
table: "Layers");
migrationBuilder.DropIndex(
name: "IX_Layers_ParentId",
table: "Layers");
migrationBuilder.DropColumn(
name: "LayerId",
table: "DataInbox");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "LayerId",
table: "DataInbox",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_Layers_ParentId",
table: "Layers",
column: "ParentId");
migrationBuilder.AddForeignKey(
name: "FK_Layers_Layers_ParentId",
table: "Layers",
column: "ParentId",
principalTable: "Layers",
principalColumn: "Id");
}
}
}