# ERR\_MAUTIC\_2\_MIGRATIONS\_FAILED

**URL:** <https://forum.mautic.org/t/err-mautic-2-migrations-failed/19166>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Tags:** mautic-3\
**Created:** [April 24, 2021, 9:30pm UTC](https://forum.mautic.org/t/err-mautic-2-migrations-failed/19166 "2021-04-24T21:30:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roseunique](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roseunique/32/5031_2.png) [@roseunique](https://forum.mautic.org/u/roseunique)\
**Post date:** [April 24, 2021, 9:30pm UTC](https://forum.mautic.org/t/err-mautic-2-migrations-failed/19166/1 "2021-04-24T21:30:55Z")

</div>

**Your software**  
_My PHP version is_ : 7.3

**Updating/Installing Errors**

I am upgrading from 2.16.3 to 3.2.4  
_These errors are showing in the installer_ :

_These errors are showing in the Mautic log_ : ERR\_MAUTIC\_2\_MIGRATIONS\_FAILED: Oh no! While preparing the upgrade, the so-called ‘database migrations’ for Mautic 2 have failed. Command output: Mautic Migrations Migrating up to 20180329185634 from 20180220212444 ++ migrating 20180329185634 → ALTER TABLE mauce\_lead\_event\_log DROP FOREIGN KEY FK\_68E22FAB55458D Migration 20180329185634 failed during Execution. Error An exception occurred while executing ‘ALTER TABLE mauce\_lead\_event\_log DROP FOREIGN KEY FK\_68E22FAB55458D’: Can’t DROP FOREIGN KEY `FK_68E22FAB55458D`; check that it exists [Doctrine\DBAL\Exception\DriverException] An exception occurred while executing ‘ALTER TABLE mauce\_lead\_event\_log DROP FOREIGN KEY FK\_68E22FAB55458D’: Can’t DROP FOREIGN KEY `FK_68E22FAB55458D`; check that it exists [Doctrine\DBAL\Driver\Mysqli\MysqliException] Can’t DROP FOREIGN KEY `FK_68E22FAB55458D`; check that it exists doctrine:migrations:migrate [–write-sql] [–dry-run] [–query-time] [–allow-no-migration] [–configuration [CONFIGURATION]] [–db-configuration [DB-CONFIGURATION]] [–db DB] [–em EM] [–shard SHARD] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–] .

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 21, 2022, 6:04pm UTC](https://forum.mautic.org/t/err-mautic-2-migrations-failed/19166/2 "2022-04-21T18:04:11Z")

</div>

Hello @roseunique and Welcome!

Can you tell us what your problem is?  
What do you want from us?

Pierre
