mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/15396] Fix revert_schema() steps not executed in correct order
PHPBB3-15396
This commit is contained in:
@@ -503,11 +503,14 @@ class migrator
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->migration_state as $name => $state)
|
foreach ($this->migrations as $name)
|
||||||
{
|
{
|
||||||
if (!empty($state['migration_depends_on']) && in_array($migration, $state['migration_depends_on']))
|
$state = $this->migration_state($name);
|
||||||
|
|
||||||
|
if ($state && in_array($migration, $state['migration_depends_on']) && ($state['migration_schema_done'] || $state['migration_data_done']))
|
||||||
{
|
{
|
||||||
$this->revert_do($name);
|
$this->revert_do($name);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user