# Database migration issue

**URL:** <https://forum.mautic.org/t/database-migration-issue/35455>\
**Category:** Product Support\
**Created:** [April 4, 2025, 4:47pm UTC](https://forum.mautic.org/t/database-migration-issue/35455 "2025-04-04T16:47:20Z")\
**Posts on this page:** 3\
**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:47pm UTC](https://forum.mautic.org/t/database-migration-issue/35455/1 "2025-04-04T16:47:20Z")

</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 7, 2025, 11:29am UTC](https://forum.mautic.org/t/database-migration-issue/35455/2 "2025-04-07T11:29:32Z")

</div>

funny i thought i had replied to this message already.  
Anyway besides the warnings/notices, the error message is what is important here, and it looks like there is an error when trying to update custom\_objects. I personally have not yet got custom objects running on 5.x let alone 6.x. If there is a possibility of removing custom onjects your upgrade might work and then you can look at installing customobjects again  
.

Let me know how things go

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [April 24, 2025, 7:36am UTC](https://forum.mautic.org/t/database-migration-issue/35455/3 "2025-04-24T07:36:20Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
