mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixed reset.
The database tables need to be dropped after reading settings from the Site item.
This commit is contained in:
@@ -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,
|
||||
@@ -170,7 +167,11 @@ namespace Orchard.ImportExport.Providers.ImportActions {
|
||||
SiteName = _orchardServices.WorkContext.CurrentSite.SiteName,
|
||||
EnabledFeatures = Enumerable.Empty<string>()
|
||||
};
|
||||
|
||||
|
||||
// Delete the tenant tables.
|
||||
DropTenantDatabaseTables();
|
||||
|
||||
// Execute Setup.
|
||||
return _setupService.Setup(setupContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user