# Error during the update from Mautic 6.0 to 6.0.1

**URL:** <https://forum.mautic.org/t/error-during-the-update-from-mautic-6-0-to-6-0-1/35654>\
**Category:** Mautic 6 Install/Upgrade Support\
**Created:** [May 12, 2025, 7:35pm UTC](https://forum.mautic.org/t/error-during-the-update-from-mautic-6-0-to-6-0-1/35654 "2025-05-12T19:35:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laclac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/laclac/32/13366_2.png) [@laclac](https://forum.mautic.org/u/laclac)\
**Post date:** [May 12, 2025, 7:35pm UTC](https://forum.mautic.org/t/error-during-the-update-from-mautic-6-0-to-6-0-1/35654/1 "2025-05-12T19:35:58Z")

</div>

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:

````auto
[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"
} ```
````
