Restore failed `entity2char already exists' RDS Postgres 13.7

What’s the history of this forum? On which postgres and Discourse version did it start? Was it ever on Bitnami or one of those sketchy hosts?