mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding default indexes
This commit is contained in:
@@ -36,5 +36,19 @@ namespace Orchard.ContentManagement.DataMigrations {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
SchemaBuilder.AlterTable("ContentItemRecord",
|
||||
table => table
|
||||
.CreateIndex("IDX_ContentType_id", "ContentType_id")
|
||||
);
|
||||
|
||||
SchemaBuilder.AlterTable("ContentItemVersionRecord",
|
||||
table => table
|
||||
.CreateIndex("IDX_ContentItemRecord_id", "ContentItemRecord_id")
|
||||
);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user