Updated Features recipe step to include Migrations step.

This will cause migrations to execute after features have been enabled.
This commit is contained in:
Sipke Schoorstra
2015-07-10 15:31:35 +01:00
parent a2d3e41dad
commit fd1b06f72d

View File

@@ -27,6 +27,9 @@ namespace Orchard.Modules.ImportExport {
var root = new XElement("Feature", new XAttribute("enable", String.Join(", ", enabledFeatures.Select(x => x.Id).OrderBy(x => x))));
context.Document.Element("Orchard").Add(root);
// Add the Migration element to force migrations run immediately after the features have been synced.
context.Document.Element("Orchard").Add(new XElement("Migration", new XAttribute("features", "*")));
}
public void Exported(dynamic context) {