I originally downloaded the Mautic 6.0.0 zip from the Mautic GitHub release page and successfully installed it manually without using composer. Mautic 6.0.0 was working.
To upgrade to Mautic 6.0.2 I have run the following commands as documented.
php bin/console mautic:update:find
It identified that I was running Mautic 6.0.0 and there was an update available to Mautic 6.0.2.
I then applied the update with:
php bin/console mautic:update:apply
However when I run the next command it failed with the following errors
php bin/console mautic:update:apply --finish
In ExceptionConverter.php line 117:
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP INDEX mtc_company_match
; check that it exists
In Exception.php line 28:
SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP INDEX mtc_company_match
; check that it exists
In Connection.php line 71:
SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP INDEX mtc_company_match
; check that it exists
When I run the following: I get some info on the database migration status.
php bin/console doctrine:migration:status
Versions | Previous | Mautic\Migrations\Version20210112162046 |
| | Current | Mautic\Migrations\Version20210211081531 |
| | Next | Mautic\Migrations\Version20190326190241 |
| | Latest | Mautic\Migrations\Versionzz20230929183000 |
|----------------------------------------------------------------------------------------------------------------------|
| Migrations | Executed | 5 |
| | Executed Unavailable | 0 |
| | Available | 63 |
| | New | 58
The above states that Mautic\Migrations\Versionzz20230929183000 is the latest ?
However in theapps/migrations directory there is :
Version20250207035735.php and Versionzz20230929183000.php at the end of the list
The 2023 version is last in the list because zz is appended to the end of the word version i.e. Versionzz20230929183000. And as such will always be the last file in the list.
Can a developer please confirm that I’m my case the wrong php file version is being used for the database migration causing the “Can’t DROP INDEX `mtc_company_match’” error as defined above ?
Please note that Versionzz20230929183000.php is distributed in the Mautic 6.0.0 zip
Has anyone successfully used this technique upgrading Mautic from 6.0.0 to 6.0.2 ?
Thanks.