Projects (GanjooRazor -> DivanRazor, GanjoorService.sln -> DivanService.sln), files, folders, classes, namespaces, settings, API routes (/api/divan) and DB tables (Divan*). External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed consistently (no pending model changes); requires a fresh database. Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace RMuseum.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class QPRelation : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_DivanQuotedPoems_PoemId",
|
|
table: "DivanQuotedPoems",
|
|
column: "PoemId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_DivanQuotedPoems_DivanPoems_PoemId",
|
|
table: "DivanQuotedPoems",
|
|
column: "PoemId",
|
|
principalTable: "DivanPoems",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_DivanQuotedPoems_DivanPoems_PoemId",
|
|
table: "DivanQuotedPoems");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_DivanQuotedPoems_PoemId",
|
|
table: "DivanQuotedPoems");
|
|
}
|
|
}
|
|
}
|