Changed UpgradeFrom1 to UpdateFrom1 on Migration (#7612)

Fixes #7611
This commit is contained in:
LorenzoFrediani-Laser
2017-03-16 20:03:41 +01:00
committed by Sébastien Ros
parent 134bac44c3
commit d2889e46e3

View File

@@ -22,7 +22,7 @@ namespace Orchard.ContentTypes {
return 1;
}
public int UpgradeFrom1() {
public int UpdateFrom1() {
foreach (var typeDefinition in _contentDefinitionManager.ListTypeDefinitions()) {
if (typeDefinition.Settings.ContainsKey("ContentTypeSettings.Creatable") && Convert.ToBoolean(typeDefinition.Settings["ContentTypeSettings.Creatable"], CultureInfo.InvariantCulture)) {
typeDefinition.Settings["ContentTypeSettings.Securable"] = "True";