mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
[ticket/15396] Fix revert_schema() steps not executed in correct order
PHPBB3-15396
This commit is contained in:
parent
2c01fe67e9
commit
ed9b896d22
@ -503,11 +503,14 @@ class migrator
|
||||
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);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user