mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15396] Fix revert_schema() steps not executed in correct order
PHPBB3-15396
This commit is contained in:
parent
2c01fe67e9
commit
ed9b896d22
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue