mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 16:11:21 +02:00
[ticket/11383] Correctly revert modules added/removed by migrator
PHPBB3-11383
This commit is contained in:
@@ -462,6 +462,12 @@ class phpbb_db_migrator
|
||||
{
|
||||
$state = ($state) ? unserialize($state) : false;
|
||||
|
||||
// reverse order of steps if reverting
|
||||
if ($revert === true)
|
||||
{
|
||||
$steps = array_reverse($steps);
|
||||
}
|
||||
|
||||
foreach ($steps as $step_identifier => $step)
|
||||
{
|
||||
$last_result = false;
|
||||
|
Reference in New Issue
Block a user