Migration from 5.0.3 to 5.0.4 doesn't work

Your software
My Mautic version is: 5.03
My PHP version is: 8.1.27
My Database type and version is: mysql 5.7.32-log

Your problem
My problem is: Migration from 5.0.3 to 5.0.4 doesn’t work

Updating at the command line:
php bin/console mautic:update:find
php bin/console mautic:update:apply
php bin/console mautic:update:apply --finish

These errors are showing in the log:
When doing “php bin/console mautic:update:apply --finish”, I get the following error messages:

Step    1 [>---------------------------] Migrating database schema...
An error occurred while updating the database. Check log for more details.

Steps I have tried to fix the problem:
Open a ticket and follow the suggested fix here: Migration from 5.0.3 to 5.0.4 doesn't work · Issue #13651 · mautic/mautic · GitHub