[ticket/14742] Reset migration_data_state before reverting

PHPBB3-14742
This commit is contained in:
Oliver Schramm 2016-08-20 22:31:08 +02:00
parent 463e8e4b13
commit 773f6d08a5

View file

@ -383,7 +383,10 @@ class migrator
} }
catch (\phpbb\db\migration\exception $e) 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); $this->revert_do($name);
throw $e; throw $e;