The 5.2.0 installation was a fresh install, so i guess it was released broken.
Sourcing upgrade-5.2.0a1-5.2.0a2.sql fixed the problem, thanks.