fixes #2377 postgres migrations failing