mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-14 17:30:45 +02:00
31 lines
969 B
C#
31 lines
969 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Migrations.Manga
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MetadataFetcherNotDBEntity : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_MetadataEntries_MetadataFetcher_MetadataFetcherName",
|
|
table: "MetadataEntries");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_MetadataEntries_MetadataFetcher_MetadataFetcherName",
|
|
table: "MetadataEntries",
|
|
column: "MetadataFetcherName",
|
|
principalTable: "MetadataFetcher",
|
|
principalColumn: "Name",
|
|
onDelete: ReferentialAction.Cascade);
|
|
}
|
|
}
|
|
}
|