mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Improve plugin uninstallation stability when removing plugins with dependencies by reversing the migration order to put dependent plugin's down() methods first.
Refs: daf281df41
. Credit to @gitlog
This commit is contained in:
parent
116165c46d
commit
ecbdb98997
@ -330,7 +330,7 @@ class UpdateManager
|
||||
/*
|
||||
* Rollback plugins
|
||||
*/
|
||||
$plugins = $this->pluginManager->getPlugins();
|
||||
$plugins = array_reverse($this->pluginManager->getPlugins());
|
||||
foreach ($plugins as $name => $plugin) {
|
||||
$this->rollbackPlugin($name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user