fixed migration for postgres