Database migration error FOREIGN KEY constraint

**Mautic 3.3
My PHP version is : 7.3.2.6
*My MySQL 8.0.22 - MySQL Community Server - GPL

Updating/Installing Errors

Database migration issue with the folowing error, any help will be appreciate

Updating database schema…
In AbstractMySQLDriver.php line 106:

An exception occurred while executing ‘ALTER TABLE ma_oauth2_accesstokens A
DD CONSTRAINT FK_AD7042B419EB6921 FOREIGN KEY (client_id) REFERENCES ma_oau
th2_clients (id) ON DELETE CASCADE’:

SQLSTATE[HY000]: General error: 3780 Referencing column ‘client_id’ and ref
erenced column ‘id’ in foreign key constraint ‘FK_AD7042B419EB6921’ are inc
ompatible.

In PDOConnection.php line 80:
SQLSTATE[HY000]: General error: 3780 Referencing column ‘client_id’ and ref
erenced column ‘id’ in foreign key constraint ‘FK_AD7042B419EB6921’ are inc
ompatible.

In PDOConnection.php line 75:
SQLSTATE[HY000]: General error: 3780 Referencing column ‘client_id’ and ref
erenced column ‘id’ in foreign key constraint ‘FK_AD7042B419EB6921’ are inc
ompatible.

1 Like

@pboisdenghien were you able to get through this? If so, could you share? I’m seeing a similar error. Thx!

Did you solved this? I’m facing the same issue (and trying to fix it, but it is really hard and annoying :face_with_symbols_over_mouth:)

1 Like

I’ve just replied here giving a bit more context about the issue: it is the same issue