mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
[ticket/11372] Migrator should only check if effectively installed if not
installed at all PHPBB3-11372
This commit is contained in:
parent
80bd78a5e5
commit
9b554fbf3c
1 changed files with 13 additions and 13 deletions
|
@ -316,6 +316,8 @@ class phpbb_db_migrator
|
||||||
'class' => $migration,
|
'class' => $migration,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!isset($this->migration_state[$name]))
|
||||||
|
{
|
||||||
if ($migration->effectively_installed())
|
if ($migration->effectively_installed())
|
||||||
{
|
{
|
||||||
$state = array(
|
$state = array(
|
||||||
|
@ -328,8 +330,6 @@ class phpbb_db_migrator
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if (!isset($this->migration_state[$name]))
|
|
||||||
{
|
{
|
||||||
$state['migration_start_time'] = time();
|
$state['migration_start_time'] = time();
|
||||||
$this->insert_migration($name, $state);
|
$this->insert_migration($name, $state);
|
||||||
|
|
Loading…
Add table
Reference in a new issue