fixes #11058 correctly
For existing installations, these two fields must be manually updated to MEDIUMINT (because we are not allowed to make huge schema changes in a minor version)
Actually this PR will also cause any existing Piwik install to trigger a slow schema upgrade when upgrading to 3.0.1! Not sure if we should merge it as it would trigger a slow DB migration
Alternative would be:
I've run into this issue on a Piwik 3.1.x install and ran the fix described in #11722. This has however left my install slightly broken and not recording all visits from
log_import.py. I posted a question on the forum however no one has replied. Is there a known fix/way to get the results into my install again?
rebased the branch and resolved the conflicts, guess it should be good to merge now