#444 db migration
This commit is contained in:
parent
6a97ddf3d9
commit
43fae4180e
5789
RMuseum/Migrations/20240620053540_WordCounts.Designer.cs
generated
Normal file
5789
RMuseum/Migrations/20240620053540_WordCounts.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
44
RMuseum/Migrations/20240620053540_WordCounts.cs
Normal file
44
RMuseum/Migrations/20240620053540_WordCounts.cs
Normal file
@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class WordCounts : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CategoryWordCounts",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CatId = table.Column<int>(type: "int", nullable: false),
|
||||
Word = table.Column<string>(type: "nvarchar(450)", nullable: true),
|
||||
Count = table.Column<int>(type: "int", nullable: false),
|
||||
PoetCat = table.Column<bool>(type: "bit", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_CategoryWordCounts", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CategoryWordCounts_CatId_Word",
|
||||
table: "CategoryWordCounts",
|
||||
columns: new[] { "CatId", "Word" },
|
||||
unique: true,
|
||||
filter: "[Word] IS NOT NULL");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "CategoryWordCounts");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -567,6 +567,33 @@ namespace RMuseum.Migrations
|
||||
b.ToTable("FAQItems");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.CategoryWordCount", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("CatId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Count")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("PoetCat")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("Word")
|
||||
.HasColumnType("nvarchar(450)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CatId", "Word")
|
||||
.IsUnique()
|
||||
.HasFilter("[Word] IS NOT NULL");
|
||||
|
||||
b.ToTable("CategoryWordCounts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.DigitalSource", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
|
||||
@ -2208,6 +2208,12 @@
|
||||
<param name="page"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.GanjoorController.BuildCategoryWordCounts">
|
||||
<summary>
|
||||
build word counts
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:RMuseum.Controllers.GanjoorController.ReadOnlyMode">
|
||||
<summary>
|
||||
readonly mode
|
||||
@ -3996,6 +4002,18 @@
|
||||
<member name="M:RMuseum.Migrations.DigitalSources.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="T:RMuseum.Migrations.WordCounts">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:RMuseum.Migrations.WordCounts.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:RMuseum.Migrations.WordCounts.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:RMuseum.Migrations.WordCounts.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
|
||||
<summary>
|
||||
donation expenditures
|
||||
@ -16525,6 +16543,11 @@
|
||||
<param name="page"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.IGanjoorService.BuildCategoryWordCounts">
|
||||
<summary>
|
||||
build word counts
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:RMuseum.Services.IGanjoorTranslationService">
|
||||
<summary>
|
||||
translation service implementation
|
||||
@ -18079,6 +18102,11 @@
|
||||
<param name="q"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorService.BuildCategoryWordCounts">
|
||||
<summary>
|
||||
build word counts
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorService.SetCategoryPoemFormatAsync(System.Int32,System.Nullable{RMuseum.Models.Ganjoor.GanjoorPoemFormat})">
|
||||
<summary>
|
||||
set category poem format tag for poems consisting of a single whole poem section
|
||||
|
||||
Loading…
Reference in New Issue
Block a user