@bx80 opened this Issue on July 27th 2022 Contributor

Some database providers such as Planet Scale are not capable of running alter statements directly against the configured database.

To workaround this, it is possible to manually run ./console core:update to see the database statements required by an update and then apply them manually, however the update will still attempt to execute the alter statements which will return an error and prevent the update from completing. This prevents use of Matomo with such providers.

In the core/Updater/Migration/Db/Sql::addErrorCodeToIgnore class we already have the option for individual updates to specify database error codes that will be ignored during updates.

Adding a config option to globally add additional error codes to this ignore list would allow updates to complete and improve marginal compatibility with non-standard database configuration.

See https://github.com/matomo-org/matomo/issues/19501#issuecomment-1194771774

This Issue was closed on August 2nd 2022
Powered by GitHub Issue Mirror