Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

BUGFIX: Fix PHP 8 compatibility #202

Merged
merged 1 commit into from
Jan 7, 2022
Merged

Conversation

bwaidelich
Copy link
Member

Description

With PHP 8 replaying all projections with MySQL/MariaDB leads to a PDOException:

There is no active transaction

Background

With PHP 8 (concretely since php/php-src@990bb34) more errors are reported and now surface.
In this case we were trying to commit an auto-commited transaction (see doctrine/migrations#1202):
Structural changes to a MySQL db (including TRUNCATE) must not be done in a transaction.

@skurfuerst skurfuerst merged commit 5360d8a into master Jan 7, 2022
@skurfuerst skurfuerst deleted the bugfix/php-8-compatibility branch January 7, 2022 11:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants