diff --git a/lib/Doctrine/Migrations/Version/DbalExecutor.php b/lib/Doctrine/Migrations/Version/DbalExecutor.php index 681d920595..c2419d4b6f 100644 --- a/lib/Doctrine/Migrations/Version/DbalExecutor.php +++ b/lib/Doctrine/Migrations/Version/DbalExecutor.php @@ -291,16 +291,10 @@ private function logResult(Throwable $e, ExecutionResult $result, MigrationPlan private function executeResult(MigratorConfiguration $configuration) : void { foreach ($this->sql as $key => $query) { - $stopwatchEvent = $this->stopwatch->start('query'); - $this->outputSqlQuery($query); - if (count($query->getParameters()) === 0) { - $this->connection->executeUpdate($query->getStatement()); - } else { - $this->connection->executeUpdate($query->getStatement(), $query->getParameters(), $query->getTypes()); - } - + $stopwatchEvent = $this->stopwatch->start('query'); + $this->connection->executeUpdate($query->getStatement(), $query->getParameters(), $query->getTypes()); $stopwatchEvent->stop(); if (! $configuration->getTimeAllQueries()) {