# Mautic upgrade from 4.4.10 to latest version 5.2

**URL:** https://forum.mautic.org/t/mautic-upgrade-from-4-4-10-to-latest-version-5-2/34926
**Category:** Mautic 5 Install/Upgrade Support
**Created:** [February 4, 2025, 4:08pm UTC](https://forum.mautic.org/t/mautic-upgrade-from-4-4-10-to-latest-version-5-2/34926 "2025-02-04T16:08:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bcrestani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bcrestani/32/7730_2.png) [@bcrestani](https://forum.mautic.org/u/bcrestani)
#### Post date: [February 4, 2025, 4:08pm UTC](https://forum.mautic.org/t/mautic-upgrade-from-4-4-10-to-latest-version-5-2/34926/1 "2025-02-04T16:08:53Z")

</div>

Hi everyone !

**Your software**  
My Mautic version is: 4.4.10  
My PHP version is: 8.X  
My Database type and version is: MySQL V8.0.34

**Your problem**  
My problem is:

I’m trying to update Mautic with the following process:

- Update to Mautic V5.0.4
- Switch install to composer
- Update to 5.2.X with composer

To update to V5.0.4 i’m doing:

```auto
php bin/console mautic:update:apply --update-package=/root/5.0.4-update.zip
php bin/console mautic:update:apply --update-package=/root/5.0.4-update.zip --finish

```

Then i’m switching to composer install: no issue

Finally, when I try to update to Mautic V5.2.X and run `php bin/console doctrine:schema:update --no-interaction --force`, I get the same errors as described in this issue: [oAuth Access token Foreign Key on client\_id · Issue #9129 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/9129)

Steps I have tried to fix the problem:  
I tried to revert code and db to 4.4.10 and when i do an `php bin/console doctrine:schema:update --dump-sql`, i see a lots of schema update waiting to be applied.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a4f00232cbd77325aa5c19c9456b5b96b190111f.png)

Trying to apply them, give me those errors:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/926454e41d375104f412162866722557e8475425.png)

There are no migrations to be done; it’s as if the database were in an old state from a previous Mautic version…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/904eb94ea228e92802c593413c6ee80a194c49bf.png)

Do you have any idea how to fix this issue ?

Thanks !

---

<div class="post-metadata">

### Author: ![johnwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/johnwick/32/3279_2.png) [@johnwick](https://forum.mautic.org/u/johnwick)
#### Post date: [February 4, 2025, 11:20pm UTC](https://forum.mautic.org/t/mautic-upgrade-from-4-4-10-to-latest-version-5-2/34926/2 "2025-02-04T23:20:35Z")

</div>

Did you try submitting this errot to Chat GPT or Claude? I can usually use either to solve these kinds of issues.

---

<div class="post-metadata">

### Author: ![bcrestani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bcrestani/32/7730_2.png) [@bcrestani](https://forum.mautic.org/u/bcrestani)
#### Post date: [February 5, 2025, 9:13am UTC](https://forum.mautic.org/t/mautic-upgrade-from-4-4-10-to-latest-version-5-2/34926/3 "2025-02-05T09:13:49Z")

</div>

Yep ! But not so helpful as this is specific ☹

---

<div class="post-metadata">

### Author: ![bcrestani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bcrestani/32/7730_2.png) [@bcrestani](https://forum.mautic.org/u/bcrestani)
#### Post date: [February 10, 2025, 9:28am UTC](https://forum.mautic.org/t/mautic-upgrade-from-4-4-10-to-latest-version-5-2/34926/4 "2025-02-10T09:28:05Z")

</div>

no one able to help ??
