/** * Executes the given migration against the database connection * * @param UnitOfWork $unitOfWork * * @throws Exception\UnitIsAlreadyPresentException */ private function executeMigration(UnitOfWork $unitOfWork) { try { $unitOfWork->migrate($this->connection); $this->historyRepository->add($unitOfWork); } catch (QueryNotSuccessfulException $e) { // for now do nothing and leave out of history } }