Hello,
I had Mautic 6.0, and it’s telling me that version 6.0.1 is out.
I followed the update procedure as indicated:
php bin/console mautic:update:find
It finds the version and tells me to run the following command:
php bin/console mautic:update:apply
Everything goes fine, and then it asks me to do:
php bin/console mautic:update:apply --finish
"
Step 2 [->---------------------] Migrating the database schema…
An error occurred while updating the database. Check the log for more details.
"
Here’s what I have in the logs:
[2025-05-12T21:24:16.858744+02:00] console.CRITICAL: Error thrown while running command "doctrine:migrations:migrate --quiet --no-interaction".
Message: "An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `mautic_company_match`; check that it exists"
{
"exception":"[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 1091): An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `mautic_company_match`; check that it exists at /home/newsletter/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:117)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 1091): SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `mautic_company_match`; check that it exists at /home/newsletter/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `mautic_company_match`; check that it exists at /home/newsletter/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:71)",
"command":"doctrine:migrations:migrate --quiet --no-interaction",
"message":"An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `mautic_company_match`; check that it exists"
} ```