Skip to content

Commit

Permalink
fix bad merge of changes from ezmb2
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 26, 2023
1 parent 310300a commit e1b98e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Core/MigrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ public function executeMigration(MigrationDefinition $migrationDefinition, $migr
}
$forceExecution = array_key_exists('forceExecution', $migrationContext) ? $migrationContext['forceExecution'] : false;

/// @todo log a warning if there are already db transactions active (an active pdo-only transaction will result in an
/// exception, but a dbal transaction will result in not committing immediately transaction status update)

// set migration as begun - has to be in own db transaction
$migration = $this->storageHandler->startMigration($migrationDefinition, $forceExecution);

Expand All @@ -359,8 +362,8 @@ protected function executeMigrationInner(Migration $migration, MigrationDefiniti
}

// BC: handling of legacy method call signature
$useTransaction = array_key_exists('useTransaction', $migrationContext) ? $migrationContext['useTransaction'] : true;
$adminLogin = array_key_exists('adminLogin', $migrationContext) ? $migrationContext['adminLogin'] : null;
$useTransaction = array_key_exists('useTransaction', $migrationContext) ? $migrationContext['useTransaction'] : $useTransaction;
$adminLogin = array_key_exists('adminLogin', $migrationContext) ? $migrationContext['adminLogin'] : $adminLogin;

$messageSuffix = '';
if (isset($migrationContext['forcedReferences']) && count($migrationContext['forcedReferences'])) {
Expand Down

0 comments on commit e1b98e4

Please sign in to comment.