mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-12 19:36:08 +02:00
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class dev1603252 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_Mangas_LocalLibraries_LibraryLocalLibraryId",
|
|
table: "Mangas");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_Mangas_LocalLibraries_LibraryLocalLibraryId",
|
|
table: "Mangas",
|
|
column: "LibraryLocalLibraryId",
|
|
principalTable: "LocalLibraries",
|
|
principalColumn: "LocalLibraryId",
|
|
onDelete: ReferentialAction.Restrict);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_Mangas_LocalLibraries_LibraryLocalLibraryId",
|
|
table: "Mangas");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_Mangas_LocalLibraries_LibraryLocalLibraryId",
|
|
table: "Mangas",
|
|
column: "LibraryLocalLibraryId",
|
|
principalTable: "LocalLibraries",
|
|
principalColumn: "LocalLibraryId",
|
|
onDelete: ReferentialAction.Cascade);
|
|
}
|
|
}
|
|
}
|