mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02: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:
@@ -208,7 +208,7 @@ class migrator
|
||||
|
||||
if (!isset($this->migration_state[$name]))
|
||||
{
|
||||
if ($migration->effectively_installed())
|
||||
if ($state['migration_start_time'] == 0 && $migration->effectively_installed())
|
||||
{
|
||||
$state = array(
|
||||
'migration_depends_on' => $migration->depends_on(),
|
||||
@@ -227,6 +227,8 @@ class migrator
|
||||
}
|
||||
}
|
||||
|
||||
$this->set_migration_state($name, $state);
|
||||
|
||||
if (!$state['migration_schema_done'])
|
||||
{
|
||||
$this->apply_schema_changes($migration->update_schema());
|
||||
|
Reference in New Issue
Block a user