Fixed reset.

The database tables need to be dropped after reading settings from the Site item.
This commit is contained in:
Sipke Schoorstra
2015-08-03 18:51:15 +01:00
parent 7ba2751de1
commit d746548f56

View File

@@ -156,10 +156,7 @@ namespace Orchard.ImportExport.Providers.ImportActions {
}
private string Setup(XDocument recipeDocument) {
// Delete the tenant tables.
DropTenantDatabaseTables();
// Setup.
// Prepare Setup.
var setupContext = new SetupContext {
RecipeDocument = recipeDocument,
AdminPassword = SuperUserPassword,
@@ -171,6 +168,10 @@ namespace Orchard.ImportExport.Providers.ImportActions {
EnabledFeatures = Enumerable.Empty<string>()
};
// Delete the tenant tables.
DropTenantDatabaseTables();
// Execute Setup.
return _setupService.Setup(setupContext);
}