Hi Team,
We have upgraded to mautic 6.0.0, previous version the latest in v5 series.
PHP 8.2.x
When we try to access forms, editing, we get this error.
[2025-03-27T11:06:35.248493+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 't0.is_read_only' in 'SELECT'" at /home/abmovers/webapps/go300/public/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 't0.is_read_only' in 'SELECT' at /home/abmovers/webapps/go300/public/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 't0.is_read_only' in 'SELECT' at /home/abmovers/webapps/go300/public/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.is_read_only' in 'SELECT' at /home/abmovers/webapps/go300/public/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130)"} {"hostname":"xxxxxx.xxxxxxx.net","pid":2913924}
There has been no issue with db migrations - everything is present.
@rcheesley I just ran the migrations and it does not run the one you have listed. It would be helpful to know this and understand these migrations to the database in more detail. Even perhaps mentioning this in the update info when a release is set.
Offering an alternate way of doing this would also be useful
ChatGPT to the rescue (always be sure to back up your database first, of course!)
To run an individual Doctrine migration, you can use the Doctrine Migrations library which provides a command-line tool to execute specific migrations. Here’s how you can run an individual migration:
Locate the Migration Version: First, identify the version number of the migration you want to execute. Migration files are typically named with a version number at the beginning, for example, Version20230401123456.php.
Use the Doctrine Command: Use the following command to execute a specific migration:
Replace ‘Version20230401123456’ with the actual version number of the migration you wish to run.
--up is used to apply the migration.
If you need to revert a migration, you can use --down instead of --up.
Check for Errors: After running the command, check the output for any errors or confirmations that the migration has run successfully.
Make sure you have the correct permissions and that your database connection settings are correctly configured before running migrations. Additionally, it’s a good practice to backup your database before performing migrations, especially in a production environment.