aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migrator.php
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-08-20 22:31:08 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2016-08-20 22:31:08 +0200
commit773f6d08a5f039eb0829886a6283a7ce1d97051e (patch)
treec74e52e9149793e90d5ab1f60e358130bb88427d /phpBB/phpbb/db/migrator.php
parent463e8e4b13373f771395d21c28b1522e302adcd7 (diff)
downloadforums-773f6d08a5f039eb0829886a6283a7ce1d97051e.tar
forums-773f6d08a5f039eb0829886a6283a7ce1d97051e.tar.gz
forums-773f6d08a5f039eb0829886a6283a7ce1d97051e.tar.bz2
forums-773f6d08a5f039eb0829886a6283a7ce1d97051e.tar.xz
forums-773f6d08a5f039eb0829886a6283a7ce1d97051e.zip
[ticket/14742] Reset migration_data_state before reverting
PHPBB3-14742
Diffstat (limited to 'phpBB/phpbb/db/migrator.php')
-rw-r--r--phpBB/phpbb/db/migrator.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index edc132e546..4c4c0a8672 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -383,7 +383,10 @@ class migrator
}
catch (\phpbb\db\migration\exception $e)
{
- // Revert the schema changes
+ // Reset data state and revert the schema changes
+ $state['migration_data_state'] = '';
+ $this->set_migration_state($name, $state);
+
$this->revert_do($name);
throw $e;