aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-08-11 16:38:56 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2016-08-11 18:00:10 +0200
commit52afa74f4e6080952a72b6f40f15e6ce0a547b49 (patch)
tree336bb89c266c60737085492119c2af8f2702366e /phpBB/phpbb
parentb00a39b9adeca86f2c2777a74d6f4f8325ee7743 (diff)
downloadforums-52afa74f4e6080952a72b6f40f15e6ce0a547b49.tar
forums-52afa74f4e6080952a72b6f40f15e6ce0a547b49.tar.gz
forums-52afa74f4e6080952a72b6f40f15e6ce0a547b49.tar.bz2
forums-52afa74f4e6080952a72b6f40f15e6ce0a547b49.tar.xz
forums-52afa74f4e6080952a72b6f40f15e6ce0a547b49.zip
[ticket/14742] Avoid loop while reverting schema
PHPBB3-14742
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/migrator.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index 965d117b0b..b82b1b918a 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -457,8 +457,13 @@ class migrator
WHERE migration_name = '" . $this->db->sql_escape($name) . "'";
$this->db->sql_query($sql);
+ $this->last_run_migration = false;
unset($this->migration_state[$name]);
}
+ else
+ {
+ $this->set_migration_state($name, $state);
+ }
}
return true;
@@ -503,8 +508,8 @@ class migrator
// Set state to false since we reached the point we were at
$state = false;
- // There is a programmed tendency to get stuck in this case
- if (strpos($step[0], 'dbtools') === 0 && ($last_result === null || $last_result === true))
+ // There is a tendency to get stuck in some cases
+ if ($last_result === null || $last_result === true)
{
continue;
}