Adding a database index on MediaPartRecord.FolderPath

This commit is contained in:
Bertrand Le Roy
2014-06-13 12:19:45 -07:00
committed by Sebastien Ros
parent c7aacf6f9f
commit ae57320926

View File

@@ -121,5 +121,14 @@ namespace Orchard.MediaLibrary {
return 4;
}
public int UpdateFrom4() {
SchemaBuilder.AlterTable("MediaPartRecord", t => t
.CreateIndex("IDX_MediaPartRecord_FolderPath", "FolderPath")
);
return 5;
}
}
}