mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding a database index on MediaPartRecord.FolderPath
This commit is contained in:
committed by
Sebastien Ros
parent
c7aacf6f9f
commit
ae57320926
@@ -121,5 +121,14 @@ namespace Orchard.MediaLibrary {
|
||||
|
||||
return 4;
|
||||
}
|
||||
|
||||
public int UpdateFrom4() {
|
||||
|
||||
SchemaBuilder.AlterTable("MediaPartRecord", t => t
|
||||
.CreateIndex("IDX_MediaPartRecord_FolderPath", "FolderPath")
|
||||
);
|
||||
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user