add an index to PoemNarrations table
This commit is contained in:
parent
9eaad8e40d
commit
720c7d60c0
@ -74,6 +74,9 @@ namespace RMuseum.DbContext
|
||||
builder.Entity<PoemNarration>()
|
||||
.HasIndex(p => p.GanjoorPostId);
|
||||
|
||||
builder.Entity<PoemNarration>()
|
||||
.HasIndex(p => p.UploadDate);
|
||||
|
||||
builder.Entity<GanjoorCat>()
|
||||
.HasIndex(c => c.FullUrl);
|
||||
|
||||
|
||||
1562
RMuseum/Migrations/20201106113129_PoemNarrationUploadDateIndex.Designer.cs
generated
Normal file
1562
RMuseum/Migrations/20201106113129_PoemNarrationUploadDateIndex.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
public partial class PoemNarrationUploadDateIndex : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_AudioFiles_UploadDate",
|
||||
table: "AudioFiles",
|
||||
column: "UploadDate");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_AudioFiles_UploadDate",
|
||||
table: "AudioFiles");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -525,6 +525,8 @@ namespace RMuseum.Migrations
|
||||
|
||||
b.HasIndex("ReviewerId");
|
||||
|
||||
b.HasIndex("UploadDate");
|
||||
|
||||
b.ToTable("AudioFiles");
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user