# How to upgrade to Mautic 3.1?

**URL:** https://forum.mautic.org/t/how-to-upgrade-to-mautic-3-1/16203
**Category:** Mautic 3 - Install/Upgrade Support
**Created:** [September 20, 2020, 12:00pm UTC](https://forum.mautic.org/t/how-to-upgrade-to-mautic-3-1/16203 "2020-09-20T12:00:45Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![aerendir](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aerendir/32/1050_2.png) [@aerendir](https://forum.mautic.org/u/aerendir)
#### Post date: [February 18, 2022, 4:01pm UTC](https://forum.mautic.org/t/how-to-upgrade-to-mautic-3-1/16203/9 "2022-02-18T16:01:31Z")

</div>

This is an old issue and there is already an open 3d for it:

> [@Error Updating from Mautic 3.0 --\>3.01](https://forum.mautic.org/t/error-updating-from-mautic-3-0-3-01/15038/11):
>
> Dropping the foreign key doesn’t work. Once dropped, running a bin/console doctrine:schema:update --force tries to recreate the foreign key, but the query results in an error: An exception occurred while executing ‘ALTER TABLE \*\_oauth2\_accesstokens ADD CONSTRAINT FK\_E6019FAD19EB6921 FOREIGN KEY (client\_id) REFERENCES \*\_oauth2\_clients (id) ON DELETE CASCADE’: SQLSTATE[HY000]: General error: 3780 Referencing column ‘client\_id’ and referenced column ‘id’ in foreign key constraint ‘FK\_E6019FAD19…

---

_[View the full topic](https://forum.mautic.org/t/how-to-upgrade-to-mautic-3-1/16203)._
