Patch a migration to work with postgres