mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding indexes to default comments migration
This commit is contained in:
@@ -68,6 +68,16 @@ namespace Orchard.Comments {
|
||||
.Attachable()
|
||||
.WithDescription("Allows content items to be commented on."));
|
||||
|
||||
SchemaBuilder.AlterTable("CommentPartRecord",
|
||||
table => table
|
||||
.CreateIndex("IDX_CommentedOn", "CommentedOn")
|
||||
);
|
||||
|
||||
SchemaBuilder.AlterTable("CommentPartRecord",
|
||||
table => table
|
||||
.CreateIndex("IDX_CommentedOnContainer", "CommentedOnContainer")
|
||||
);
|
||||
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user