Fixing migration for Postgres