fix migration for pg