My Mautic version is: 5.2.1
My PHP version is: 8.1.31
My Database type and version is: 8.0.40 MySQL
Dockerized with php8.1-apache
My Problem:
After upgrade from Mautic 5.0.4 to 5.2.1 i’d also liked to run the doctrine migrations, but they refuse to install.
mautic:update:apply runs fine, but the doctrine:migration:migrate spit out errors:
[2025-01-09 18:20:34] [WARNING] You have 78 previously executed migrations in the database that are not registered migrations.
[2025-01-09 18:20:34]
[2025-01-09 18:20:34]
[2025-01-09 18:20:34] >> 2021-06-23 14:03:28 (20180508202930)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:02 (20180702014364)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:02 (20180702014365)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20180821144204)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20180921144421)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:51 (20181111095447)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:51 (20190704154940)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:53 (20190724110039)
[2025-01-09 18:20:34] >> 2020-12-13 10:56:02 (20191017140848)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:54 (20191126093923)
[2025-01-09 18:20:34] >> 2020-12-13 10:56:02 (20191206113956)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:55 (20191219155630)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:56 (20200211095409)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:57 (20200212141530)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:57 (20200220172041)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:57 (20200227110431)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:57 (20200302164801)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20200331160919)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:02 (20200409102100)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:57 (20200422144300)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:03 (20200507122854)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:03 (20200729170800)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:58 (20200805185714)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:03 (20200810153131)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:03 (20200812180900)
[2025-01-09 18:20:34] >> 2020-11-05 10:45:58 (20200815153711)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20200924080139)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20201015084627)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20201102120710)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20201102133546)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20201105120328)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20201120122846)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20201123070813)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20201125155904)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:29 (20201130201631)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20201207114926)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:30 (20201207140911)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20201228041109)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:30 (20210104171005)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20210203143600)
[2025-01-09 18:20:34] >> 2021-06-23 14:03:30 (20210223174702)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20210502162314)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:04 (20210520100503)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:05 (20210609191822)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:05 (20210614151138)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:05 (20210623071326)
[2025-01-09 18:20:34] >> 2022-03-21 15:24:05 (20220111202917)
[2025-01-09 18:20:34] >> 2023-06-07 10:04:11 (20230519081315)
[2025-01-09 18:20:34] >> 2023-06-07 10:04:11 (20230522115137)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:54 (Mautic\Migrations\Version20190326190241)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:54 (Mautic\Migrations\Version20190410143658)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:55 (Mautic\Migrations\Version20190524124819)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:55 (Mautic\Migrations\Version20191106152509)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:55 (Mautic\Migrations\Version20200917152259)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:55 (Mautic\Migrations\Version20201019100000)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:56 (Mautic\Migrations\Version20210112162046)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:56 (Mautic\Migrations\Version20210115065034)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:56 (Mautic\Migrations\Version20210217115150)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:56 (Mautic\Migrations\Version20210420113309)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:57 (Mautic\Migrations\Version20211026152443)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:57 (Mautic\Migrations\Version20211026153057)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:57 (Mautic\Migrations\Version20211110070503)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:57 (Mautic\Migrations\Version20211209022550)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:58 (Mautic\Migrations\Version20230506112314)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:58 (Mautic\Migrations\Version20230506113422)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:58 (Mautic\Migrations\Version20230506113627)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:58 (Mautic\Migrations\Version20230506113731)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:58 (Mautic\Migrations\Version20230506113812)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:59 (Mautic\Migrations\Version20231110103625)
[2025-01-09 18:20:34] >> 2025-01-09 14:43:59 (Mautic\Migrations\Version20231206152313)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:05 (Mautic\Migrations\Version20231207235400)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:05 (Mautic\Migrations\Version20240226114528)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:05 (Mautic\Migrations\Version20240320081612)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:06 (Mautic\Migrations\Version20240416112112)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:06 (Mautic\Migrations\Version20240611103824)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:06 (Mautic\Migrations\Version20240704164714)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:06 (Mautic\Migrations\Version20240708153845)
[2025-01-09 18:20:34] >> 2025-01-09 14:44:06 (Mautic\Migrations\Version20240725105507)
[2025-01-09 18:20:34] [notice] Migrating up to Mautic\Migrations\Versionzz20230929183000
[2025-01-09 18:20:34] [notice] Migration Mautic\Migrations\Version20221128145933 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2025-01-09 18:20:34] [notice] Table plugin_citrix_events already exists
[2025-01-09 18:20:34] [notice] Migration Mautic\Migrations\Version20230522141144 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2025-01-09 18:20:34] [notice] Migration is not required.
[2025-01-09 18:20:34] [notice] Migration Mautic\Migrations\Version20230606111852 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2025-01-09 18:20:34] [notice] Migration Mautic\Migrations\Versionzz20230929183000 skipped during Pre-Checks. Reason: "There are no local config files to migrate. Skipping the migration."
[2025-01-09 18:20:34] [notice] finished in 64.9ms, used 54.5M memory, 4 migrations executed, 0 sql queries
[2025-01-09 18:20:34]
[2025-01-09 18:20:34]
[2025-01-09 18:20:34] [OK] Successfully migrated to version: Mautic\Migrations\Versionzz20230929183000
[2025-01-09 18:20:34]
[2025-01-09 18:20:34]
[2025-01-09 18:20:34]
When i run “status” it get
root@a0e1d9df866c:/var/www/html# php bin/console doctrine:migration:status
+----------------------+----------------------+------------------------------------------------------------------------+
| Configuration |
+----------------------+----------------------+------------------------------------------------------------------------+
| Storage | Type | Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration |
| | Table Name | migrations |
| | Column Name | version |
|----------------------------------------------------------------------------------------------------------------------|
| Database | Driver | Doctrine\DBAL\Driver\PDO\MySQL\Driver |
| | Name | mautic |
|----------------------------------------------------------------------------------------------------------------------|
| Versions | Previous | Mautic\Migrations\Version20240708153845 |
| | Current | Mautic\Migrations\Version20240725105507 |
| | Next | Mautic\Migrations\Version20221128145933 |
| | Latest | Mautic\Migrations\Versionzz20230929183000 |
|----------------------------------------------------------------------------------------------------------------------|
| Migrations | Executed | 97 |
| | Executed Unavailable | 78 |
| | Available | 23 |
| | New | 4 |
|----------------------------------------------------------------------------------------------------------------------|
| Migration Namespaces | Mautic\Migrations | /var/www/html/docroot/app/migrations |
+----------------------+----------------------+------------------------------------------------------------------------+
I have no clue what that means or how to fix it. Looks like there was a problem with the 2022-11-28 migration?