fix a migration for postgres