# DB Error on Upgrade to 2.14

**URL:** <https://forum.mautic.org/t/db-error-on-upgrade-to-2-14/10677>\
**Category:** Product Support\
**Created:** [August 6, 2018, 11:38am UTC](https://forum.mautic.org/t/db-error-on-upgrade-to-2-14/10677 "2018-08-06T11:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimhill10](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jimhill10/32/222_2.png) [@jimhill10](https://forum.mautic.org/u/jimhill10)\
**Post date:** [August 6, 2018, 11:38am UTC](https://forum.mautic.org/t/db-error-on-upgrade-to-2-14/10677/1 "2018-08-06T11:38:00Z")

</div>

I upgraded using the SSH command line from 2.13 t. 2.14 just now. The system seems to work just fine but there is an error in the log:

`mautic.NOTICE: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'ALTER TABLE mauci_lead_event_log DROP FOREIGN KEY FK_CFC0FC6355458D': Can't DROP FOREIGN KEY`FK\_CFC0FC6355458D`; check that it exists (uncaught exception) at /home/fncvoxvg/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 115 while running console command`doctrine:migrations:migrate`[] []`

---

<div class="post-metadata">

**Author:** ![jimhill10](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jimhill10/32/222_2.png) [@jimhill10](https://forum.mautic.org/u/jimhill10)\
**Post date:** [August 6, 2018, 12:11pm UTC](https://forum.mautic.org/t/db-error-on-upgrade-to-2-14/10677/2 "2018-08-06T12:11:56Z")

</div>

Fixed by going into that table in PHPMyAdmin, Relations view, and then changing the Foreign key to the value expected as shown in the error message.
