From e1aa0b5f84a69a216b353cf3f0c59eea3146f7a0 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Thu, 16 Jan 2014 18:36:27 -0800 Subject: [PATCH] Adding indexes to default comments migration --- src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs b/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs index cae26d478..e3b7bfd42 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs @@ -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; }