Fix schema migration for pg.