prepare for change migrations
fix migrations for pg