Not sure if that is the most elegant solution. But can't think of something better right now.
fixes #18721
This pull request has been mentioned on Matomo forums. There might be relevant details there:
https://forum.matomo.org/t/4-7-0-b2-update-fails-with-mysql-5-5/44603/10
This pull request has been mentioned on Matomo forums. There might be relevant details there: