Adding indexes to default comments migration

This commit is contained in:
Sebastien Ros
2014-01-16 18:36:27 -08:00
parent 68e4828dfe
commit e1aa0b5f84

View File

@@ -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;
}