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.
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.