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:
Luke Towers 2021-03-06 03:02:46 -06:00
parent 116165c46d
commit ecbdb98997

View File

@ -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);
}