src/Migration/Repository/SqlMigrationRepository.php
public function transaction(callable $callback): void
    {
        $this->pdo->beginTransaction();
        $callback($this);
        $this->pdo->commit();
    }
public function transaction(callable $callback): void
    {
        $this->pdo->beginTransaction();
        $callback($this);
        $this->pdo->commit();
    }
Wraps the queries inside callback into transaction.

@param callable $callback
@return void