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>
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace RMuseum.Migrations
|
|
{
|
|
public partial class DivanPoemNewFields : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RhymeLetters",
|
|
table: "DivanPoems",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SourceName",
|
|
table: "DivanPoems",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SourceUrlSlug",
|
|
table: "DivanPoems",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "VerseCount",
|
|
table: "DivanMetres",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "RhymeLetters",
|
|
table: "DivanPoems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SourceName",
|
|
table: "DivanPoems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SourceUrlSlug",
|
|
table: "DivanPoems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VerseCount",
|
|
table: "DivanMetres");
|
|
}
|
|
}
|
|
}
|