Fixes MySQL upgrades from < 6.0