1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-29 02:29:21 +02:00

[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)
{
// 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;