From 80707a48faf9f0c7543937f8ea58f88c3678e9b6 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Tue, 14 Oct 2025 14:47:12 +0200 Subject: [PATCH] Projections: Removing duplicate index creation that is a result of a merge from 1.10.x --- .../Modules/Orchard.Projections/Migrations.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Projections/Migrations.cs b/src/Orchard.Web/Modules/Orchard.Projections/Migrations.cs index db74e610d..3205e2f41 100644 --- a/src/Orchard.Web/Modules/Orchard.Projections/Migrations.cs +++ b/src/Orchard.Web/Modules/Orchard.Projections/Migrations.cs @@ -81,24 +81,6 @@ namespace Orchard.Projections { .Column("FieldIndexPartRecord_Id") ); - //Adds indexes for better performances in queries - SchemaBuilder.AlterTable("StringFieldIndexRecord", table => { - table.CreateIndex("IDX_Orchard_Projections_PropertyName", "PropertyName"); - table.CreateIndex("IDX_Orchard_Projections_StringFieldIndexRecord", "FieldIndexPartRecord_Id"); - }); - SchemaBuilder.AlterTable("IntegerFieldIndexRecord", table => { - table.CreateIndex("IDX_Orchard_Projections_PropertyName", "PropertyName"); - table.CreateIndex("IDX_Orchard_Projections_IntegerFieldIndexRecord", "FieldIndexPartRecord_Id"); - }); - SchemaBuilder.AlterTable("DoubleFieldIndexRecord", table => { - table.CreateIndex("IDX_Orchard_Projections_PropertyName", "PropertyName"); - table.CreateIndex("IDX_Orchard_Projections_DoubleFieldIndexRecord", "FieldIndexPartRecord_Id"); - }); - SchemaBuilder.AlterTable("DecimalFieldIndexRecord", table => { - table.CreateIndex("IDX_Orchard_Projections_PropertyName", "PropertyName"); - table.CreateIndex("IDX_Orchard_Projections_DecimalFieldIndexRecords", "FieldIndexPartRecord_Id"); - }); - SchemaBuilder.CreateTable("FieldIndexPartRecord", table => table.ContentPartRecord()); //Adds indexes for better performances in queries