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>
161 lines
5.6 KiB
C#
161 lines
5.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace RMuseum.Migrations
|
|
{
|
|
public partial class UpdtRelSectsLogModel : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse10VOrder",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse10VOrderResult",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse5VOrder",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse5VOrderResult",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse6VOrder",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse6VOrderResult",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse7VOrder",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse7VOrderResult",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse8VOrder",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse8VOrderResult",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse9VOrder",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BreakFromVerse9VOrderResult",
|
|
table: "DivanPoemSectionCorrections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "UpdatingRelSectsLogs",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "int", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
MeterId = table.Column<int>(type: "int", nullable: false),
|
|
RhymeLettes = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
DateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_UpdatingRelSectsLogs", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "UpdatingRelSectsLogs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse10VOrder",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse10VOrderResult",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse5VOrder",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse5VOrderResult",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse6VOrder",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse6VOrderResult",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse7VOrder",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse7VOrderResult",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse8VOrder",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse8VOrderResult",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse9VOrder",
|
|
table: "DivanPoemSectionCorrections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BreakFromVerse9VOrderResult",
|
|
table: "DivanPoemSectionCorrections");
|
|
}
|
|
}
|
|
}
|