mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11383] Correctly revert modules added/removed by migrator
PHPBB3-11383
This commit is contained in:
parent
bee4f8d818
commit
eb61edf4d1
1 changed files with 6 additions and 0 deletions
|
@ -462,6 +462,12 @@ class phpbb_db_migrator
|
||||||
{
|
{
|
||||||
$state = ($state) ? unserialize($state) : false;
|
$state = ($state) ? unserialize($state) : false;
|
||||||
|
|
||||||
|
// reverse order of steps if reverting
|
||||||
|
if ($revert === true)
|
||||||
|
{
|
||||||
|
$steps = array_reverse($steps);
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($steps as $step_identifier => $step)
|
foreach ($steps as $step_identifier => $step)
|
||||||
{
|
{
|
||||||
$last_result = false;
|
$last_result = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue