# Database issue

**URL:** <https://forum.mautic.org/t/database-issue/35456>\
**Category:** Mautic 4 Install/Upgrade Support\
**Tags:** community, discussion, development\
**Created:** [April 4, 2025, 4:49pm UTC](https://forum.mautic.org/t/database-issue/35456 "2025-04-04T16:49:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [April 4, 2025, 4:49pm UTC](https://forum.mautic.org/t/database-issue/35456/1 "2025-04-04T16:49:34Z")

</div>

**Your software**  
My Mautic version is 4.4:  
My PHP version is 8.1:  
My Database type and version is 10.13:

**Your problem**  
My problem is:  
Hello mautic community i hope everyone is doing great I have an isssue when the migration of my db any solution for this i’m installing mautic 6  
These errors are showing in the log:  
WARNING! You are about to execute a migration in database “sonet\_db” that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:

> yes

[notice] Migrating up to Mautic\Migrations\Versionzz20230929183000  
[notice] Migration Mautic\Migrations\Version20201019100000 skipped during Pre-Checks. Reason: “Table emails\_draft already exists. Skipping migration”  
[notice] Migration Mautic\Migrations\Version20201026101117 skipped during Pre-Checks. Reason: “Schema includes this migration”  
[notice] Index lead\_date\_modified cannot be created because the leads has hit the table index limit or the index already exists  
[notice] Migration Mautic\Migrations\Version20211020092759 skipped during Pre-Checks. Reason: “Schema includes this migration”  
[warning] Migration Mautic\Migrations\Version20211209022550 was executed but did not result in any SQL statements.  
[error] Migration Mautic\Migrations\Version20211209022550 failed during Post-Checks. Error: “Permission class not found for custom\_objects in permissions classes”

In CorePermissions.php line 441:

Permission class not found for custom\_objects in permissions classes

doctrine:migrations:migrate [–write-sql [WRITE-SQL]] [–dry-run] [–query-time] [–allow-no-migration] [–all-or-nothing [ALL-OR-NOTHING]] [–configuration CONFIGURATION] [–em EM] [–conn CONN] [–] []

Steps I have tried to fix the problem:

Try provide permission to files but nothing changes

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [April 4, 2025, 5:44pm UTC](https://forum.mautic.org/t/database-issue/35456/2 "2025-04-04T17:44:46Z")

</div>

It looks like you are running custom objects under 4.x and this might be part of the problem for upgrading.

Are you able to uninsall custom objects.

TBH, i have tried installing custom objects on 5.x and was not successful.
