hopefully fixed postgresql migrations