Database issue

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

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.