Issue with logging in to mautic 6.0 after upgrade from 5.2.5

Hi Team @rcheesley

When trying to login I am getting this error, I have checked various tables to see that uuid is there. and they are. Am I missing something else ?

Matthew

[2025-05-01T12:03:15.098596+00:00] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\InvalidFieldNameException: "An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm1_.uuid' in 'SELECT'" at /home/mautic-ssa/webapps/j3mautic-ssa/public/go/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 67 {"exception":"[object] (Doctrine\\DBAL\\Exception\\InvalidFieldNameException(code: 1054): An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm1_.uuid' in 'SELECT' at /home/mautic-ssa/webapps/j3mautic-ssa/public/go/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:67)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 1054): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm1_.uuid' in 'SELECT' at /home/mautic-ssa/webapps/j3mautic-ssa/public/go/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm1_.uuid' in 'SELECT' at /home/mautic-ssa/webapps/j3mautic-ssa/public/go/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130)"} {"hostname":"a-srv24-wwm-ubuntu24","pid":459222}

Just a thought, is there a migration which deals with this specifically, if yes, what is the vesion number ?

I searched the GitHub PRs for UUID using this query to find when it was introduced:

There was also a PR to fix some issues:

Both were merged in 6.0.0.

In the first PR I found the migration:

app/migrations/Version20210211081531.php

Then there are two migrations in the second one:

app/migrations/Version20210818090322.php

app/migrations/Version20210819201726.php

If youโ€™ve done an upgrade and the migrations were processed, it should have migrated your database and completed the necessary changes.

I alos searched the issue queue for UUID and found this issue: Missing `uuid` field in Lead entity after updating to 6.0.0-rc ยท Issue #14760 ยท mautic/mautic ยท GitHub which was fixed with the later PR:

Also released with 6.0.0.