# Errors on upgrade from 2.37 to 2.40?

**URL:** <https://community.dhis2.org/t/errors-on-upgrade-from-2-37-to-2-40/54022>\
**Category:** Support - Assistance technique\
**Created:** [18 July 2023 10:02 UTC](https://community.dhis2.org/t/errors-on-upgrade-from-2-37-to-2-40/54022 "2023-07-18T10:02:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [4 October 2023 15:08 UTC](https://community.dhis2.org/t/errors-on-upgrade-from-2-37-to-2-40/54022/4 "2023-10-04T15:08:22Z")

</div>

Hi @doodoocoder

Thank you for your suggestions.

> [@doodoocoder](#):
>
> flyway\_schema\_history

I don’t think this is a recommended approach. Please read the following [note]([https://community.dhis2.org/t/flyway-error-in-2-33-3-snapshot-on-using-2-32-database-on-second-startup-the-server-started-fine-on-first-attempt/38772/3:](https://community.dhis2.org/t/flyway-error-in-2-33-3-snapshot-on-using-2-32-database-on-second-startup-the-server-started-fine-on-first-attempt/38772/3:)

> [@DHIS2 patch release 2.36.2 is now available - \[HOT FIX\]](https://community.dhis2.org/t/dhis2-patch-release-2-36-2-is-now-available-hot-fix/43525/9):
>
> Dear all
> 
> Please do not delete the flyway table. That is not a solution.  
> The flyway schema history table is internal and its needed by flyway to track the changes of the schema and verify consistency of the database.  
> Every error that flyway throws will have a reason, and its important to find the reason rather then trying to delete the table and lose precious info on why flyway threw an error in the first place. Its more likely to end up in an inconsistent state and all future flyway migrations will have issues if you delete or modify the flyway\_schema\_history table without understanding the root cause of the issue.
> 
> In short, **please do not delete flyway table ever**

@linxd, I would recommend to test @Ulanbek’s suggestion please and see if it clears aways the scheduler issues?

Thanks!

---

_[View the full topic](https://community.dhis2.org/t/errors-on-upgrade-from-2-37-to-2-40/54022)._
