change migration to work with pg