Closed bwaidelich closed 2 years ago
With PHP 8 replaying all projections with MySQL/MariaDB leads to a PDOException:
PDOException
There is no active transaction
With PHP 8 (concretely since https://github.com/php/php-src/commit/990bb34) more errors are reported and now surface. In this case we were trying to commit an auto-commited transaction (see https://github.com/doctrine/migrations/issues/1202): Structural changes to a MySQL db (including TRUNCATE) must not be done in a transaction.
TRUNCATE
Description
With PHP 8 replaying all projections with MySQL/MariaDB leads to a
PDOException
:Background
With PHP 8 (concretely since https://github.com/php/php-src/commit/990bb34) more errors are reported and now surface. In this case we were trying to commit an auto-commited transaction (see https://github.com/doctrine/migrations/issues/1202): Structural changes to a MySQL db (including
TRUNCATE
) must not be done in a transaction.