fixes migrations for upload