adding db index for GanjoorComments => CommentDate
This commit is contained in:
parent
221bb670bb
commit
0d6958b55a
@ -88,6 +88,8 @@ namespace RMuseum.DbContext
|
||||
builder.Entity<GanjoorTrack>()
|
||||
.HasIndex(c => c.Name);
|
||||
|
||||
builder.Entity<GanjoorComment>()
|
||||
.HasIndex(c => c.CommentDate);
|
||||
}
|
||||
|
||||
|
||||
|
||||
2501
RMuseum/Migrations/20210506053544_CommentDateIndex.Designer.cs
generated
Normal file
2501
RMuseum/Migrations/20210506053544_CommentDateIndex.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
22
RMuseum/Migrations/20210506053544_CommentDateIndex.cs
Normal file
22
RMuseum/Migrations/20210506053544_CommentDateIndex.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
public partial class CommentDateIndex : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorComments_CommentDate",
|
||||
table: "GanjoorComments",
|
||||
column: "CommentDate");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_GanjoorComments_CommentDate",
|
||||
table: "GanjoorComments");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -406,6 +406,8 @@ namespace RMuseum.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CommentDate");
|
||||
|
||||
b.HasIndex("InReplyToId");
|
||||
|
||||
b.HasIndex("PoemId");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user