Fixed migration for postgres