mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Removing commented code in migration
This commit is contained in:
@@ -53,17 +53,6 @@ namespace Orchard.Autoroute {
|
||||
.AddColumn<bool>("UseCulturePattern", c => c.WithDefault(false))
|
||||
);
|
||||
|
||||
//we set the default pattern index from the deprecated setting
|
||||
//foreach (ContentTypeDefinition contentTypeDefinition in ContentDefinitionManager.ListTypeDefinitions()) {
|
||||
// foreach (ContentTypePartDefinition contentTypePartDefinition in contentTypeDefinition.Parts.Where(x => x.PartDefinition.Name == "AutoroutePart")) {
|
||||
// var settings = contentTypePartDefinition.Settings.GetModel<AutorouteSettings>();
|
||||
// string patternIndex = contentTypePartDefinition.Settings["AutorouteSettings.DefaultPatternIndex"];
|
||||
// settings.DefaultPatterns = new List<DefaultPattern> { new DefaultPattern { PatternIndex = patternIndex } };
|
||||
|
||||
// ContentDefinitionManager.AlterTypeDefinition(contentTypeDefinition.Name, builder => builder.WithPart("AutoroutePart", settings.Build));
|
||||
// }
|
||||
//}
|
||||
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user