mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11691] Change detection of effectively_installed()
When start is set for a migration, it is not yet effectively installed. So we just continue doing it... PHPBB3-11691
This commit is contained in:
parent
29c84be40a
commit
f8d6f0ef08
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,7 @@ class migrator
|
||||||
|
|
||||||
if (!isset($this->migration_state[$name]))
|
if (!isset($this->migration_state[$name]))
|
||||||
{
|
{
|
||||||
if ($migration->effectively_installed())
|
if ($state['migration_start_time'] == 0 && $migration->effectively_installed())
|
||||||
{
|
{
|
||||||
$state = array(
|
$state = array(
|
||||||
'migration_depends_on' => $migration->depends_on(),
|
'migration_depends_on' => $migration->depends_on(),
|
||||||
|
@ -227,6 +227,8 @@ class migrator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->set_migration_state($name, $state);
|
||||||
|
|
||||||
if (!$state['migration_schema_done'])
|
if (!$state['migration_schema_done'])
|
||||||
{
|
{
|
||||||
$this->apply_schema_changes($migration->update_schema());
|
$this->apply_schema_changes($migration->update_schema());
|
||||||
|
|
Loading…
Add table
Reference in a new issue