Fix migrations errors. Update to comply phpBB3.1-RC2 changes.