Database migration 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

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