# Problems with Mautic 3 migration - M2 database migration fails with error about foreign key

**URL:** <https://forum.mautic.org/t/problems-with-mautic-3-migration-m2-database-migration-fails-with-error-about-foreign-key/14798>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [June 16, 2020, 3:16am UTC](https://forum.mautic.org/t/problems-with-mautic-3-migration-m2-database-migration-fails-with-error-about-foreign-key/14798 "2020-06-16T03:16:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [June 22, 2020, 10:40am UTC](https://forum.mautic.org/t/problems-with-mautic-3-migration-m2-database-migration-fails-with-error-about-foreign-key/14798/8 "2020-06-22T10:40:11Z")

</div>

@EJL Mautic 3 requires MariaDB 10.2 or higher, so that might have caused some issues. We’ll be upgrading the upgrade script to mark MariaDB 10.2 (or MySQL 5.7) as the minimum required database version:

> [@Upgrade Error From 2.16.2 to 3.x](https://forum.mautic.org/t/upgrade-error-from-2-16-2-to-3-x/14663/16):
>
> Thanks for reporting back. We have taken the following steps to improve MariaDB support: [Add MariaDB to our CI testing pipeline](https://github.com/mautic/mautic/pull/8930)[Check for MariaDB 10.2+ (instead of 10.1+) in the Mautic 3 upgrade script](https://github.com/mautic/mautic/issues/8931)[Check if you’re running a supported database version in the clean installation process](https://forum.mautic.org/t/include-database-version-test-in-installer/14872) I will go ahead and close this topic now. If you came across any other issues, please feel free to let us know in a new topic slight_smile

---

_[View the full topic](https://forum.mautic.org/t/problems-with-mautic-3-migration-m2-database-migration-fails-with-error-about-foreign-key/14798)._
